2. Github.com
While it makes things easier, you don’t
have to use it.
“Following” people on Github doesn’t GIT
you Klout
3. Local Setup
Know which branch you are in using Bash:
http://www.jonmaddox.com/2008/03/13/show-your
4. Local Setup
[mubix@evil:~]$ cat .gitconfig
[user]
name = Rob Fuller
email = jd.mubix@gmail.com
[github]
user = mubix
[alias]
ci = commit
st = status
co = checkout
5. Local Setup
[mubix@evil:~]$ cat .ssh/config
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /var/logs/auth.log.gz
6. Add it’s upstream
git remote add upstream
git://github.com/rapid7/metasploitframework.git
Doesn’t have to be called ‘upstream’
git fetch upstream
git merge upstream/master
DO NOT git pull upstream master
11. Set up your local copy
git clone
git@github.com:NoVAHA/metasploitframework.git
proceed to screw things up
12. Fetch, Pull, Push, Merge
Definitely coded/designed by testosterone
Fetch, gets changes but gives you the
chance handle conflicts
Pull, auto merges changes
Merge
16. It’s committed and you
are dumb
git branch old
git reset --hard HASH_FROM_UPSTREAM
git pull upstream master
(shouldn’t need anything)
git push origin :master
git push origin master
Then salvage what you need from ‘old’