クイックスタート
-
リストの参照
日常的な頻度で並べられたコマンド。
-
検索
コマンド名または説明に従ってフィルタします。
-
コピーコマンド
端末に貼り付けます。
Gitコマンド:init、clone、branch、merge、stash、remotesを毎日使用します。初心者やたまに記憶が衰えている人は、クリックするだけで検索やコピーができます。
プライバシー:アップロードしないローカルで処理します。
↓ 下の入力領域に貼り付けて、結果をすぐに表示します。★QADB 610☆QADB 610☆QADB 610☆QADB 610☆QADB 610☆QADB 610☆QADB 610☆QADB 610☆QADB
常用 Git 命令速查; 搜索命令或说明,一键复制。
git initInitialize a new repository
git clone <url>Clone a remote repository
git statusShow working tree status
git add <file>Stage changes
git add .Stage all changes
git commit -m "msg"Commit staged changes
git pushPush commits to remote
git pullFetch and merge remote changes
git branchList branches
git branch <name>Create a branch
git checkout <branch>Switch branch
git switch <branch>Switch branch (newer)
git merge <branch>Merge branch into current
git log --onelineCompact commit history
git diffShow unstaged diff
git stashStash working changes
git stash popApply latest stash
git remote -vList remotes
git fetchDownload remote objects
git rebase <branch>Rebase onto branch
收录日常开发最常用的 Git 子命令; 完整选项见 git help 与官方文档。
Gitコマンド:init、clone、branch、merge、stash、remotesを毎日使用します。初心者やたまに記憶が衰えている人は、クリックするだけで検索やコピーができます。
リストの参照
日常的な頻度で並べられたコマンド。
検索
コマンド名または説明に従ってフィルタします。
コピーコマンド
端末に貼り付けます。
これはメモです。
日常的な作業では、` git checkout-b feature-x `を使用して新しいブランチの変更を分離します。機能が完了したら、` git addを使用して段階変更を行います。`,` git commit-m"message"`でコミットし、` git push origin feature-x `でブランチをプッシュします。
緊急エラーの場合は、メインブランチに切り替える前に、コミットされていない変更を一時的に保存してワークスペースをクリアします。マージ時、` git merge--no ff `は分岐履歴を保持しますが、競合は` git mergetol `で直感的に解決できます。定期的に` git fetch--prune `を実行して、削除されたリモートブランチのローカル参照をクリーンアップします。
Input
git stash
Output
Stash working changes
日常的な運営に専念する、rebase-i、filterブランチなどについては、公式ドキュメントを参照してください。
いいえ、静的参照のみ。
「--depth=1」を使用して、スペースを節約するために最新の履歴のみをダウンロードする浅クローンを表すことができます。完全な履歴を表示するには、このフラグを持たないrechoneを選択するか、既存のrepoで「git fetch--unshawl」を実行します。