Me
Initial App
(locally)
(upstream)
Forked App
(origin)
push
pull
request
pull
Collegue 1
Collegue 2
Git Flow Example
Have a look at Sébastien's Saunier article
to understand Le Wagon's workflow
git remote -v
=> list all remotes
git remote add pickaname colleguerepo
=> download collegue repo
git checkout -B pickaname remote/remotebranch
=> retrieve a specific branch of a colleguegit push heroku branchname:masterWHAT I want to do
on WHICH repo
WHICH local branch I want to push
ON heroku branch master
git add -pgit config --global alias.SHORTCUT_NAME TERM_REPLACED
> git config --global alias.co checkout
> git config --global alias.ci commitgit stash
=> put modifications aside
git stash pop
=> retrieve stashed elements
git stash list
=> list all your stashed elements
git stash apply stash@{1}
=> apply that particular stash
git stash clear
=> delete all your stashed elementsgit cherry-pick d42c389f
=> just get the commit you needgit reset --hard d42c389f
=> let's go back to that one
git reflogs is very useful to cancel
a reset --hard :
It lists all your git command history
and you can comeback to a previous
state easilygit commit --amend
=> apply last staged changes to previous commit
Can also be used to rename a commit
git rebase -i HEAD~2