Skip to content

Instantly share code, notes, and snippets.

@oooooooo
Last active December 13, 2017 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oooooooo/7788193 to your computer and use it in GitHub Desktop.
Save oooooooo/7788193 to your computer and use it in GitHub Desktop.
Git

目次

最低限

会社にある本などで理解しておくこと。

  • git init
  • git add
  • git commit
  • git status
  • git checkout
  • git diff

便利な alias

alias ga='git add'
alias gc='git commit -v'
alias gd='git diff -w --color'
alias gl='git pull'
alias gp='git push'
alias gs='git status'
alias gst='git stash'
alias gsd='git stash drop'
alias gsp='git stash pop'
alias gss='git stash show --text'

便利なもの

どこでも git

何かプログラムを書くなら必ず git init。

git がない環境では Gitをソースからコンパイルしてインストールする こと。

一時的な作業をするには git stash を使う。

GitLab

GitLab で New Project を選ぶと、次にどの git コマンドを叩けばよいか教えてくれます。

Create Repository に従い、GitLab でコードを管理しましょう。

次のステップ

@lindexi
Copy link

lindexi commented Dec 13, 2017

thx

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