![]() #Ĭl = clone # Clone a repository into a new directoryĬld = clone -depth 1 # Create a shallow clone with a history truncated to the specified number of commits. #Ĭ = commit # Record changes to the repositoryĬa = commit -all # Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.Ĭm = commit -m # Use the given as the commit message.Ĭam = commit -am # Shortcut for -all and -mĬem = commit -allow-empty -m # Allows to create a commit without any files modified cd = commit -amend # Replace the tip of the current branch by creating a new commit.Ĭad = commit -all -amend # Shortcut for -amend and -allĬadne = commit -all -amend -no-edit # Amends a commit without changing its commit message. The branch must be fully merged in its upstream branch, or in HEAD if no upstream was set with -track or -set-upstream-to.īdd = branch -D # Shortcut for -delete -force.īm = branch -move # Move/rename a branch and the corresponding reflog.īmm = branch -M # Shortcut for -move -force.īr = branch -remotes # List or delete (if used with -d) the remote-tracking branches. ![]() #īa = branch -all # List both remote-tracking branches and local branches.īav = branch -all -verbose # When in list mode, show sha1 and commit subject line for each head, along with relationship to upstream branch (if any)īd = branch -delete # Delete a branch. Ai = add -interactive # Add modified contents in the working tree interactively to the index.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |