Maybe it's just me but I find it's much easier to have origin being... well the original repo and not my fork.
origin
original
Before I used to clone lots of project where I actually never did any changes. What's the point?
If origin is the original repo, then I just need to checkout master and do git pull
master
git pull
To update a branch where I worked, I just need to do git fetch origin -v && git merge origin/master
git fetch origin -v && git merge origin/master
I have some zsh aliases to help with it
export GITHUB=$HOME/github // Usage: $ master alias master="git fetch origin -v ; git fetch $USER -v ; git checkout -B master origin/master" // Usage: $ clone jmfayard / buildSrcVersions // Will clone https://github.com/jmfayard/buildSrcVersions function clone() { cd $GITHUB local ORG=$1 REPO=$3 git clone https://github.com/${ORG}/${REPO} cd ${REPO} git remote add ${USER} https://github.com/${USER}/${REPO} echo "To fork the repository, open https://github.com/${ORG}/${REPO}/fork" }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe it's just me but I find it's much easier to have
origin
being... well theoriginal
repo and not my fork.Before I used to clone lots of project where I actually never did any changes. What's the point?
If
origin
is the original repo, then I just need to checkoutmaster
and dogit pull
To update a branch where I worked, I just need to do
git fetch origin -v && git merge origin/master
I have some zsh aliases to help with it