Useful commands with Git
A list of Git commands that are practically useful even after years of experience
Repository Aladdin
- Create new respository by GitHub webinterface
- git init
- git remote add origin git@github.com:Thanh-Truong/Aladdin.git
- git push -u origin master
Work routine:
- only read Participating that someone mentions you.
- when you have more time or get bored Notifications
- if you even have time, check new issues that are interesting to follow
Shortcuts
Searching issues and pull requests
https://help.github.com/articles/searching-issues-and-pull-requests/
More tips
- Refine Github experience
- If you want to know what your colleagues are doing on Github ? Check Devspace
Commands
- Reset changes
- New branch locally
- Fetch new branch from remote
- List branch locally
- List branch remote
- List branch both local and remote
- Delete xx on local
- Delete xx on remote. Here origin is my remote
- Pull xx from remote
- Merge xx from remote
- Squash all commit from a feature branch, which diverges from this branch
- Rename old branch
- showing parents of a merge commit