git status
Get a visual of current changes. red changes are unstaged changes. Green changes are staged changes.
I use the following to clear all changes
git reset
Unstage your changes
git checkout .
git checkout -- .
git clean -f -fd -fx
git checkout develop
git pull upstream develop --rebase
git checkout -b yourBranch
git push upstream yourBranch
git branch -u upstream/yourBranch yourBranchgit rebase develop
Before you push
git rebase develop
You should pull the latest develop into your branch before merging, so that you can create a merge commit which will…
1. clone the shared repo, in this case: (https://github.com/<Organization>/<project>)
git clone <sharedRepo.git>
If you run
ls
You should see it in your current local directory.
2. create a fork from the shared repo, in this case: (https://github.com/<Organization>/<project>)
into your personal github, for example: (https://github.com/<yourName>/<project>)
3. now we make sure the…