【版本控制】Git起步

1. Git命令行

~ gitusage: git [–version] [–help] [-C <path>] [-c name=value][–exec-path[=<path>]] [–html-path] [–man-path] [–info-path][-p|–paginate|–no-pager] [–no-replace-objects] [–bare][–git-dir=<path>] [–work-tree=<path>] [–namespace=<name>]<command> [<args>]The most commonly used git commands are: addAdd file contents to the index bisectFind by binary search the change that introduced a bug branchList, create, or delete branches checkout Checkout a branch or paths to the working tree cloneClone a repository into a new directory commitRecord changes to the repository diffShow changes between commits, commit and working tree, etc fetchDownload objects and refs from another repository grepPrint lines matching a pattern initCreate an empty Git repository or reinitialize an existing one logShow commit logs mergeJoin two or more development histories together mvMove or rename a file, a directory, or a symlink pullFetch from and integrate with another repository or a local branch pushUpdate remote refs along with associated objects rebaseForward-port local commits to the updated upstream head resetReset current HEAD to the specified state rmRemove files from the working tree and from the index showShow various types of objects statusShow the working tree status tagCreate, list, delete or verify a tag object signed with GPG’git help -a’ and ‘git help -g’ list available subcommands and someconcept guides. See ‘git help <command>’ or ‘git help <concept>’to read about a specific subcommand or concept. ~ git help –allusage: git [–version] [–help] [-C <path>] [-c name=value][–exec-path[=<path>]] [–html-path] [–man-path] [–info-path][-p|–paginate|–no-pager] [–no-replace-objects] [–bare][–git-dir=<path>] [–work-tree=<path>] [–namespace=<name>]<command> [<args>]available git commands in ‘/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core’ addconfigfsck-objectsmerge-one-fileremotestash add–interactivecount-objectsgcmerge-oursremote-extstatus amcredentialget-tar-commit-idmerge-recursiveremote-fdstripspace annotatecredential-cachegrepmerge-resolveremote-ftpsubmodule applycredential-cache–daemon gui–askpassmerge-subtreeremote-ftpssubtree archimportcredential-osxkeychain hash-objectmerge-treeremote-httpsvn archivecredential-storehelpmergetoolremote-httpssymbolic-ref bisectcvsexportcommithttp-backendmktagremote-testsvntag bisect–helpercvsimporthttp-fetchmktreerepackunpack-file blamecvsserverhttp-pushmvreplaceunpack-objects branchdaemonimap-sendname-revrequest-pullupdate-index bundledescribeindex-packnotesrerereupdate-ref cat-filediffinitp4resetupdate-server-info check-attrdiff-filesinit-dbpack-objectsrev-listupload-archive check-ignorediff-indexinstawebpack-redundantrev-parseupload-pack check-mailmapdiff-treeinterpret-trailerspack-refsrevertvar check-ref-formatdifftoollogpatch-idrmverify-commit checkoutdifftool–helperls-filesprunesend-emailverify-pack checkout-indexfast-exportls-remoteprune-packedsend-packverify-tag cherryfast-importls-treepullsh-i18n–envsubstweb–browse cherry-pickfetchmailinfopushshellwhatchanged citoolfetch-packmailsplitquiltimportshortlogwrite-tree cleanfilter-branchmergeread-treeshow clonefmt-merge-msgmerge-baserebaseshow-branch columnfor-each-refmerge-filereceive-packshow-index commitformat-patchmerge-indexreflogshow-ref commit-treefsckmerge-octopusrelinkstage’git help -a’ and ‘git help -g’ list available subcommands and someconcept guides. See ‘git help <command>’ or ‘git help <concept>’to read about a specific subcommand or concept. ~ git –versiongit version 2.3.8 (Apple Git-58) ~ git commit -amend

版权声明:本文为博主原创文章,未经博主允许不得转载。

,趁着有脾气装潇洒,有本钱耍个性,

【版本控制】Git起步

相关文章:

你感兴趣的文章:

标签云: