- [GIT 101](#git-101) --- # GIT 101 --- ## git clone `git clone ` ## git branch `git branch ` ## push the new branch into the remote repository: `git push -u ` ## viewing branches: `git branch or git branch --list` ## deleting a branch: `git branch -d ` ## git checkout `git checkout ` ### shortcut command allows to create and switch `git checkout -b ` ## git status `git status` ## git log `git log` `git log --oneline` ## git add `git add ` ### Add everything at once: `git add -A` ## git commit `git commit -m "commit message"` ## git push `git push ` ### if is newly created, then you also need to upload the branch with the following command: `git push --set-upstream ` **OR** `git push -u origin ` ## git pull `git pull ` ## git revert `git revert XXXXXXX` ## git merge `git checkout dev` `git fetch` `git merge ` --- ### Useful links [10 important git commands that every developer should know](https://www.freecodecamp.org/news/10-important-git-commands-that-every-developer-should-know/)