Skip to content

Instantly share code, notes, and snippets.

@gerlie-reyes
Last active July 14, 2020 07:52
Show Gist options
  • Save gerlie-reyes/496ea2a960d6db42827fe3607ce14652 to your computer and use it in GitHub Desktop.
Save gerlie-reyes/496ea2a960d6db42827fe3607ce14652 to your computer and use it in GitHub Desktop.
Mostly Used Git Commands
- git checkout <dest branch>
- git pull
- git checkout <feature branch>
- git pull origin <dest branch.
- fix conflicts
- git add <filenames>
- git commit -m "Fix merge conflicts"
- git push
  • git checkout <old_name>
  • git branch -m <new_name>
  • git push origin -u <new_name>
  • git push origin --delete <old_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment