One of the benefits of Git is that the branch management of the code becomes an extremely convenient thing, the branch only retains the difference, does not have to copy any files, does not connect the network, quickly creates, uses is deleted. The GIT branch has nothing to do with the complexity of the project, no matter how complicated your project is, creating a git
Git remote-v
Submit your modified C code
#添加当前修改的文件到暂存区
git Add.
#如果你自动追踪文件, including files that you have manually deleted with a status of deleted
Git add-u
#提交你的修改
git commit–m "your comment"
#推送你的更新到远程服务器, syntax for git push [remote na
/config Global configuration path: [user]/.gitconfig Configuration You can edit the. gitconfig file directly, more conveniently, as follows: [ User] = barrior = [email protected] [alias] = status = Checkout = Branch = Commit Difference Comparison command (diff)This should be viewed with a tool to be more intuitive.--cached [File] or git diff--staged [file] /// If there is no file, the difference is l
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
that state at any time.
1. Git checkout master first switch on master
2. Git tag v1.0 a tag to master v1.0
3. Git tag to see all the tags
4. Git log–-pretty=oneline–-abbrev-commit//View history commit
5. Git tag v0.9 d03da//tag for history commit
6.
something.For example: git tag v1.0 git tag-a v1.0, the-a parameter will allow you to add some information that makes an annotated tag. When you run the git tag-a command, Git opens an editor to let you enter the tag information.We can use commit sha to give a past commit to hit Tag:git tag-a v0.9 XXXXPush is not incl
write .gitignore files from scratch, GitHub has prepared a variety of configuration files for us, only need to combine to use, such as input tags and sublimetext, in the following URL to query the Ignore ruleshttps://www.gitignore.io/Git branch MergeSuppose at this point that you suddenly receive a call saying that there is a serious problem that needs urgent repair, you can do it in the following way:
Return to the branch that was previousl
The current development of new projects using version control tools are basically git, old projects or SVN, online git resources are many, many and miscellaneous. I have compiled a study of git, hoping to help students who are learning about git.First, Git commands to recogn
Shell translates into shell meaning, it is wrapped in the Linux kernel layer, a series of Linux commands can be issued to the operating system related instructions to the human-machine interface. The shell can combine a series of Linux commands with its conditional statement
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
Original address: http://blog.csdn.net/ithomer/article/details/7529022
-------------------------------
First , Git commands to recognize
Before formally introducing GIT commands, let's introduce Git's basic commands and actions, and have a general understanding of
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 compiled. Several special nouns are translated as f
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 Checkout.
Common Linux shell commands and shell commands
I. Basic commands
1. Shut down immediately and restart again. Execute the following command:
Shutdown-r now or reboot
2. Shut down immediately and execute the following command:
Shutdown-h now or poweroff
3. Wait for two minutes
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 nouns are translated as follows.
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 "Commint describtion" undo Modify or clear buf
Build a git environment under Linux1. Create a GitHub account, https://github.com2, Linux create SSH key:[Plain]View Plaincopy
Ssh-keygen # #一直默认就可以了
3. Add the public key to the GitHub account information accounts settings->ssh key4. Test verification is successful.[Plain]View Plaincopy
ssh-t [email protected]
Hi someone! You've successfully authenticated, but GitHub does not provide sh
Build a git environment under Linux1. Create a GitHub account, https://github.com2, Linux create SSH key:[Plain]View Plaincopy
Ssh-keygen # #一直默认就可以了
3. Add the public key to the GitHub account information accounts settings->ssh key4. Test verification is successful.[Plain]View Plaincopy
ssh-t [email protected]
Hi someone! You've successfully authenticated, but GitHub does not provide sh
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.