-
Download and install Git
git config --global user.email [email protected]
- mkdir mrpara
- cd mrpara
- git init
- touch README
- git add README
- git commit -m 'first commit'
- git remote add origin [email protected]:jk/mrpara.git
- git push origin master
- cd existing_git_repo
- git remote add origin [email protected]:jk/mrpara.git
- git push origin master
Look over the Guidesection. You should also customize your ~/.gitconfig .
[user]
name = Jens Kohl
email = [email protected]
signingkey = 8EFDF903
[color]
status = auto
diff = auto
branch = auto
interactive = auto
[alias]
st = status
ci = commit
co = checkout
l = log
staged = diff --cached
unstaged = diff
both = diff HEAD
oneline = log --pretty=oneline
amend = commit --amend
[merge]
tool = opendiff
[sendemail]
smtpserver = example.com
aliasesfile = /Users/jkohl/.gitaliases
aliasfiletype = mailrc
smtpuser = user
smtppass = geheim
smtpssl = true
[format]
numbered = auto
[core]
legacyheaders = false
excludesfile = /etc/gitexcludes
editor = mate -w
[repack]
usedeltabaseoffset = true
[github]
user = jk
token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Die Daten für die github-Direktive gibt es unter Accounts.
Forken sollte man gar nicht, wenn man als Contributor eingetragen ist. Pullen geht mit git pull origin master und pushen mit git push origin master