Skip to content

Instantly share code, notes, and snippets.

@garaemon
Last active August 29, 2015 13:56
Show Gist options
  • Save garaemon/9233712 to your computer and use it in GitHub Desktop.
Save garaemon/9233712 to your computer and use it in GitHub Desktop.
git and github introduction and tips

git and github introduction and tips

gitでユーザー名を設定する

git config --global user.name hoge
git config --global user.email hoge@hoge.com

gitで他人のforkを手元に反映させる

git remote add <nickname> https://github.com/<username>/<repo>
git fetch <nickname>
git branch -a # ブランチ名の確認
git merge <nickname>/<branch-name>

emacsでgitをいい感じにつかう

magitを使いましょう. M-x magit-statusでmagit life

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment