Git basic commands and GitFlow Workflow
This article explains some basic team collaboration commands of Git and GitFlow workflow guide.Git team collaboration commands
1. Open BranchGit branch new branch name, for example, under the master branch, a New Development branch:
We have already introduced the Vi Quick Check table in a previous article. In this article, we'll show you the basic commands you need to get started with Git.GitGit is a distributed version control system that is used in a large number of open source projects. It was written by Linus Torvalds, the founder of Linux, in 2005. This program allows for non-linear project development and enables efficient processing of large amounts of data through storage
information. If the change is abandoned, exit the editor.
4. view the project status
View the current work
Git log
View the last three submissions
Git log-N3
Complete viewing
Git log -- stat -- Summary
5. View changes
View submitted updates
Git diff
View the ID of the change, for example
Usually use two version number control software SVN and Git, in all fairness, assuming purely own use, then absolute git more suitable, local library, remote library, offline work, powerful and flexible branch, the famous GitHub, these are the reasons to choose Git. Remember when you first approached Git, feel
Using GIT commands and GitHub projects under LinuxDescription: Tested OK on August 26, 2017 (metalworking)Build a git environment under Linux1, registered GitHub account, website: https://github.com2, Linux create SSH key:Method one: Ssh-keygen # #一直默认就可以了Method Two: Ssh-keygen-t rsa-c "[email protected]"//Generate key, mailbox ibid.Cat ~/.ssh/id_rsa.pub//Submit
branch is currently present the error
Git checkout branch Name: Switch to the specified branch, if the branch does not exist the error
git checkout-b branch Name: Create a new branch and switch to that branch, equivalent to the above two commands executed successively, if the branch is already present, the error will not switch the past
, knowing that you are up to date. So git pull is needed firstgit log: View history loggit revert: to restore a version of the changes, you must provide a specific git version number, such as ' git revert bbaf6fb5060b4875b18ff9ff637ce118256d6f20 ', Git's version number is a generated hash valuegit diff: compare two different points in a historical recordgit branc
the content information of the testfile.txt file and add "Hello world." After saving② Use the git status command to see that the file display is modified, or you can use the git diff command to see the specific changes③ using the git add command and the git commit command to commit the modified file 4, version of the
远程分支master关联起来git push origin master关于ssh 你把ssh公钥给别人 别人登记了你的公钥才能识别你 才愿意给你push的权利git clone respostoryaddr clone Remote Library to local support for multiple protocolsHead pointing to master master pointing to the latest commitWhen creating a branch, add Dev to replace the original master function Merge branch is to point master back to the latest, remove dev git
Several useful Git commands that you may not know are useful.1. Export the last modified file submitted
I have been using this command to regularly send it to others for review/consolidation. This command exports the recently submitted modified files to a zip file.
1
git archive -o ../updated.zip HEAD $(git
in Windows, use the Git command method as follows (take Win7 as an example):1, Msysgit is the Windows version of Git can Baidu search git download. 2. After the installation is complete, the Start menu found "git", "Git Bash" to open git
Tags: convenient win32 principle INI defect to make the line BSP self-with ACKHow do I use Linux commands in Windows?There are many on the web saying that installing cygwinportable under the CMD window is a Linux command, but there are some flaws.In fact, there is a very simple and effective way for programmers to use Git Bash.Git is used in program development and Git
Docker installation and sharing of common commands and sharing of common docker commands
Basic commands
1. To install docker in yum, the root permission is required.
Yum install docker
2. Start docker
Systemctl start docker. service
3. view the docker status
Systemctl status
Liunx Common Commands================================================================================1. Remotely copy files---------------------------------------------------------------------------------scp-r [email protected]:/home2/xyf/a20/android4.0./android/2. Telnet---------------------------------------------------------------------------------SSH [email protected]Convert L:/fs:ntfs//L is your disk c
Git commands are not here to say, beginners click http://www.cnblogs.com/Vdiao/p/5267250.htmlGit is a distributed version control system, and the same git repository can be distributed across different machines. This is often the case, find a computer to act as a server role, 24 hours a day to power on, everyone else from the "server" to clone a copy to their own
How to solve various SSL certificate problem problems when running Git commands
For example, if I use git clone gitURL in Windows
The SSL certificate problem: self signed certificate prompt is displayed.
This problem occurs frequently in windows. I guess git is mainly developed based on linux. On windows, it is easy
First, prefaceIt is a wise choice to place GitHub as a hosting site for your project. Even if you don't think about your project, you have to learn to develop your team project. Maybe some beginners (like me) will feel git command a lot of Ah, is a variety of terminology, feel very difficult to get started. Actually learning some of the basics of GIT commands is
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.