Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Learning init command

Step 1: Create a folder and run cmd -> git init
Step 2: Check status if any untrackable file you have added
Step 3: Add and commit in your own local pc/laptops run cmd ->
git add . for all files to make status staged
run cmd -> git commit -m "added files".
Step 4: Again check for git status.

Local git and repo is ready now create a global(remote) repo and name origin(or something)
Step 5: Create a new repo without README.md else we have to clone into local also, or we can make later
Step 6: Run command -> git remote add origin <-- https link of remote repo -->
Step 7: Run command -> git remove -v (to verify remote)
Step 8: Run command -> check for branch or want to rename branch
cmd -> git branch and git branch -M newmain
Step 9: Final push into origin or remote repo with cmd -> git push origin main
cmd -> git push -u origin main (we can use this cmd to set upstream if we are working on a project for long time) next time run cmd only -> git push

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages