-
Notifications
You must be signed in to change notification settings - Fork 2
Git Flow
Omar Barazanji edited this page Feb 6, 2023
·
1 revision
- Cloning assistant for the first time:
git clone --recurse-submodules [email protected]:omarzanji/assistant.git
- Pulling latest changes:
git pull
- If you make any changes that you would like to commit, checkout a branch and commit changes to this branch:
git checkout -b yourname/branch-name
For example:
git checkout omar/fixed-database-responses-bug
- Committing changes to your new branch:
git add .
git commit -m "Write a small description about your changes here."
git push origin yourname/branch-name
- See which branch you are on as well as all other local and remote branches:
git branch
- Switching back to main branch:
git chekout main
- Switching back to another branch:
git checkout branchname
- How to force checking out main, over-writing any un-staged changes:
git stash
git checkout main
- Reset main to latest discarding all changes you made:
git reset --hard HEAD
- How to see log of all commits in current branch:
git log