protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch, and the trackgit remote Set-head Origin Master
Here is a simple summary of the main commands git, easy to remember, the summary of the bad, please tolerate, thank you! Want to see detailed explanation, recommend Liao Xuefeng great God's tutorial, the address is as follows: Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/The following references to thereadme.txt均为提交的文件1: Tell$ git
Learn more about GIT's checkout commandsThe checkout command (git checkout) is one of the most commonly used commands in Git, and it is also a dangerous command.Because this command overrides the workspace. The check Out command is used as follows:Usage one: git checkout [-Q] [Usage two:
Recently, I used git for version control. I found that git has many commands, so I can write down some common commands for viewing. The following content is a summary of this article, which is quite good. Let's take a look.
Certificate ------------------------------------------------------------------------------------
protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch, and the trackgit remote Set-head Origin Master
my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch, and the trackgit remote
1. Initialize a git repository and use the git init command.2. Add files to the Git repository in two steps:
The first step, use the command git add , note, can be used repeatedly, add multiple files;
The second step, using git commit the command, is done.
with a versioned projectScp-r my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop br
version control system.Git is free software.
Must be put inlearngitDirectory (sub-directories are also fine), because this is a git repository and it cannot be found in other places.
It takes only two steps to put a file in the GIT repository than to put the elephant in the refrigerator.
Step 1: use commandsgit addTell git to add the file to the repository:
$
warehouse with a versioned projectScp-r my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote
warehouse with a versioned projectScp-r my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote
my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch, and the trackgit remote
a versioned projectScp-r my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch,
a versioned projectScp-r my_project.git [email protected] git.csdn.net:~ # Upload the repository to the servermkdir robbin_site.git cd robbin_site.git git--bare init # Create a pure warehouse on the servergit remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository addressGit push-u Origin Master # client First CommitGit push-u origin Develop # First submits the local develop branch to the remote develop branch,
Introduction: git is a very good distributed version management system. I want to be a developer who is familiar with git, I also like git and GitHub for collaborative development ). Git commands are the GIT
1. Git document https://github.com/progit/progit/blob/master/zh/02-git-basics/01-chapter2.markdownhttps://github.com/progit/progit/tree/master/zhhttp://www.uml.org.cn/pzgl/201204285.asp if it is a Windows operating system, you can install a visual version controller: Turtle. In this way, you do not need to run the GIT command. Small turtle installation configurat
GitHub without:sssh-keygen -t rsa -C"[emailprotected]"14.git remote Add Origin warehouse address associated repository15.git Push Origin Master pushes all contents of the local library to the remote librarygit push origin:master keeps the local repository and empties the remote repository16.git remote-v viewing the associated remote warehouse17.
server, on Github will display the configured uploader informationgit config--global user.email "xxx"--Configure Mailboxgit config--list view configuration listConfigure Sshkey: Use this sshkey to confirm upload permissions when uploading code1. Create a local ssh:ssh-keygen-t rsa-c "Github registered Mailbox"2. Add this sshkey to Github:Copy the contents of the C:\Documents and settings\administrator\.ssh\id_rsa.pub file;Log on to Github--account Setting----Ssh-key Add ssh-key to paste the con
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.