parameter to delete the specified project. git stash clear: delete all projects.
23. Git reflogGit reflog is a command for managing reflog. reflog is a mechanism that git uses to record reference changes, such as record branch changes or head reference changes. when git reflog does not specify a reference, the reflog
BranchesGit branch-r# Start Tracking One remote branchGit branch--track some_branch origin/some_branch# Change to the branch locallygit checkout Some_branch# make changes and commit them locally....# Push your changes to the remote repository:git pushTo create a remote branch# Create a new branch locallyGit branch Name_of_branchgit checkout Name_of_branch# edit/add/remove Files # Commit your changes locallygit add fileNameGit commit-m Message# Push changes and new branch to remote repository
, start with Git stash list, and then restore the specified stash' Git stash apply [email protected]{1} ' to remove your specified version number as [email protected]{1}, stash content is not deleted, use git stash drop to deleteBranch switching, updating issuesEsc,esc.: q! EnterView remote repositories: $ git remote-v
logs are on the server and must be downloaded from the server each time the log is viewed
For example: Code server in the United States, log downloads may take 10 minutes each time you look at the work done a few years ago, which is a pain. But if you migrate to git and take advantage of the local nature of git logs, it takes only a few seconds to see all the code histories of a specific task, making it mu
head reference. When Git reflog does not specify a reference, the Reflog of the head is listed by default. [Email protected] {0} represents the current value of the head, and [email protected]{3} represents the value before the head changes 3 times. Git logs changes to the Reflog file in the HEAD, with a path of. Git/logs/head, and the Reflog files for the bra
Git is a distributed version Control tool, this article starts with the introduction of Git, focusing on the basic commands and use of git, let you try to use Git at the same time, experience the original version control tool can have so much impact on development, the artic
current workspace and index, such as ' Git rmapp/model/user.rb ', which is similar to the SVN rm,delgit commit : commits changes to the current workspace, similar to the SVN commit command, such as ' Git commit-mstory #3, add user Model ', which must be submitted with-m to enter a commit message, similar to SVN's Commitgit push : Update the local commit code to the remote repository, such as '
Git is used every day, but a lot of commands can't remember.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compil
Thanks to Liaoche, the great God shared git lessons
Master the following commands, basically daily enough local warehouse common operation to create a repository
Git init Add file to buffer
Git add file to warehouse
Git commit-m "
, but after recovery, stash content is not deleted, you need to use git stash drop to delete;Another way is to use git stash pop, restore the stash content also deletedGit Common operations Commands:1) Remote Warehouse related commandsCheckout warehouse: $ git clone
Summary of COMMON commands
One, fallback to a node, by the following command:
Git Reset–hard HASH returns to a node without preserving modifications such as:
Git Reset–hard HASH returns to a node, preserving the modification.
Second, all the local changes. No commits are returned to the original state.
Git compile installation and common commands =========================================: compiling installation and setting 1.1: Introduction GitHub website address (download source package): https://github.com/git/ Git.git git downloads on systems such as Windows Mac: Https:
NanyiDate: December 9, 2015I use Git every day, but I can't remember many commands.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special no
List of common Git commandsHere's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
Index/stage: Staging Area
Repository: Warehouse area (or local warehouse)
Remote: Repository
git commands, like a Linux command, are easy and quick to operate with commands. In general, the daily use just remember the following figure 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.
Here's a summary of common
Guide
Git is a free, open source distributed version control system for agile and efficient processing of any or small or large project. In general, you can use Git as long as you remember 6 commands. But skilled use, I am afraid to remember 60~100 a command.
Here's a list of common
Guide
Git is a free, open source distributed version control system for agile and efficient processing of any or small or large project. In general, you can use Git as long as you remember 6 commands. But skilled use, I am afraid to remember 60~100 a command.
Here's a list of common
to crawl the remote new commit first;
git checkout-b branch-name origin/branch-name , the names of local and remote branches are best consistent;
git branch--set-upstream branch-name Origin/branch-name ;
Crawl branches from the remote, using git pull , if there is a conflict, deal with the conflict first.
$
. Use-a to specify the label name and-M to specify the description text: git tag-A v0.1-M "version 0.1 released" 3628164
5 use the PGP signature label: git tag-S
6. Push a local Tag: git push origin
7. Push all unpushed local tags: git push Origin -- tags
8. delete a local Tag: g
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.