「Debian活用/その他」の版間の差分

ナビゲーションに移動 検索に移動
 
(同じ利用者による、間の8版が非表示)
=== branch ===
 
<nowiki>
git checkout -b test main
git push -u origin test
 
git commit -m ""
</nowiki>
 
=== 状態確認 ===
status
show
 
git diff --name-only --cached
git diff ID
git log
</nowiki>
 
=== patch ===
 
<nowiki>
git format-patch --start-number NUMBER ID
 
git apply --check 0001-test.patch
 
patch -p1 < 0001-test.patch
</nowiki>
 
<nowiki>
$ git commit --amend
 
 
 
$ git rebase -i HEAD~n
pickをeditに変更する
git commit --amend -s -m ""
git rebase --continue
 
git stash -u
git stash list
git stash apply stash@{0}
git stash apply stash@{0} --index
git stash drop stash@{0}
</nowiki>
 
<nowiki>
$ git reset --soft HEAD^
$ git reset --hard HEAD^
$ git reset HEAD FILENAME
$ git checkout HEAD FILENAME
$ git rm --cached -r FILENAME
 
$ git revert HEAD
 
$ git log --pretty=full
 

ナビゲーション メニュー