git status- check the current statusgit add <filename>- add files to tracking/staginggit add .- add files to tracking/staging in current directorygit checkout .- discard all changes in current directorygit commit -m <message>- commit the changes with messagegit init- initialise a new git repogit branch- current branchgit checkout <filename>- discard any changes to filegit checkout -b <branch-name>- create a new branchgit reset head- unstage the changesgit merge <branch-name>- merge to current checked out branchedgit checkout <branch-name>- checkout to a existing branchgit push -u origin <branch-name>create a new branch on upstream (github)git pull- pull changes from upstream(github) branchgit push- push changes to upstream(github) branchgit clone <url>- used to clone a git repo
Bhavit720/batch-47
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|