github-git-cheat-sheet.pdf


立即下载 NetworkAttachedStorage
2024-03-18
git file commit config global Sets atta che version transactions$
368.9 KB

GIT CHEAT SHEET
MAKE CHANGES
Review edits and craft a commit transaction
$ git status
Lists all new or modified files to be committed
$ git add [file]
Snapshots the file in preparation for versioning
$ git reset [file]
Unstages the file, but preserve its contents
$ git diff
Shows file differences not yet staged
$ git diff --staged
Shows file differences between staging and the last file version
$ git commit -m "[descriptive message]"
Records file snapshots permanently in version history
CONFIGURE TOOLING
Configure user information for all local repositories
$ git config --global user.name "[name]"
Sets the name you want attached to your commit transactions
$ git config --global user.email "[email address]"
Sets the email you want attached to your commit transactions
$ git config --global color.ui auto
Enables helpful colorization of command line output
CREATE REPOSITORIES
Start a new repository or obtain one from an existing URL
$ git init [project-name]
Creat


git/file/commit/config/global/Sets/atta/che/version/transactions$/ git/file/commit/config/global/Sets/atta/che/version/transactions$/
-1 条回复
登录 后才能参与评论
-->