0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitコマンドメモ

0
Last updated at Posted at 2013-06-30

clone関連

cloneする時、トップのディレクトリ名を変更する

grit -> mygrit になる

git clone git://github.com/schacon/grit.git mygrit

commit関連

削除フィルをインデックスに反映する

commitは追加、編集と同様

git add -u

branch関連

remote branchからlocal branchを作成

git checkout -b [new local branch] [remote branch]

git checkout -b feature/fixbugremotes/origin/feature/fixbug

masterの修正をbranchにmerge

git checkout [branch] 
git merge master

git stash

作業内容の一時保存

git stash save

stashの一覧

git stash list

git-flowの開発

初期化

cd GIT_ROOT
git flow init

機能用のbranch作成

git checkout [devekop_branch]
git flow feature start [branch_name]

tag

tag設定

注釈付き版

git tag -a v1.0 -m 'my version 1.0'

軽量版

git tag v1.0

tag確認

一覧

git tag

詳細

git show v1.0
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?