cloned a remote library2. Cloning a remote libraryPrepare to clone a remote host on localhost (default remote hostname is origin) librarygit clone [email protected]:autumn1023/gitstudy[[email protected] ~]# git clone [email protected]:autumn1023/Gitstudy #其中autumn1023是在github的账号, Gitstudy is the new repositoryinitialized empty Git repositoryinch/root/gitstudy/.git
Recently, various project teams have turned from SVN to git
You'll be sharing some of the most common git operations and usage experiences in the near future:
Let's look at some of the commands you need to use in your work:
---------------------------
The basic common commands for
As a result of a Web project to go to the turntable network (http://www.quzhuanpan.com), and a few friends to do, considering the code hosting, teamwork, so in-depth study of git, the following are some common git commands, share to everyone, I hope you like.1. Create an empty repository (admin, normal user ignored)Git
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:
1. Git remote–vView Remote repositories2. Git remote add weixin-old-remote https://git.sprucetec.com/meicai/weixin-old.gitAdd a remote repository3. Git fetch upstreamThe pull does not change in the local repository and does not modify your own files.4. Git branch–rView all branches on a server5.
Here are the GIT commands I used in development
1. Configure git git config--global--add user.email 2. Create a new project git init git add git commit-a-M "xxx"
git stash.
View the temporary stack git stash list
Git stash pop from the top Reply of the like-store stack to the working file
You can continue the operation after resolving the conflict.
---------------------------------------------------
The Code has been successfully submitted, and the review is merged, and then y
...//create and switch branches equivalent to git branch b_name git checkout b_nameGIT branch b_name//Create branch PS: Create branch clone from current branchgit checkout b_name//Toggle BranchGit branch//view Current Branch branch operation use this command plus option (-D Delete-D to delete an unincorporated branch) checkout just toggle (-B does not exist will be created)
Turn: http://blog.csdn.net/lxlzhn/article/details/92061971. Project view or execution for test environment and online environment: git init: git initgit: Git pull[email protected]:p Roject.git 2. Project development for Development environments: (after development on 1 basis) first, the commit code involves a configuration, the content of which the tag code is su
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
1. The first thing to do after installing Git is to set your user name and e-mail address. This is important because each git commit uses that information. It's been embedded in your submission forever .git config--global user.name "jasonpinet" git config--global user.email [emailprotected] check your settings (Checkin
/docker-installer.git # #以https方式克隆到本地, can read and writeOther commands for Git synchronization:git clone git://github.com:xxxx/test.git # #以gitreadonly方式克隆到本地, can only readgit clone [email protected]:xxx/test.git # #以SSH方式克隆到本地, can read and writegit clone https://github.com/xxx/test.git # #以https方式克隆到本地, can read and writegit fetch [email protected]:xxx/xxx.g
version number:Git reflogIgnore fileCreate a. gitignore file (named. gitignore in Windows).In the list of files and directories you don't want Git to track#例外的文件类型*.exe#例外的文件夹testdir/#例外文件 (not backed up)!my.pycBranch Management#新建分支:GIT branch Switch branches (preferably commit changes before, or stashing, or commit amending):
A. Some concepts of git:http://guibin.iteye.com/blog/1014369Two. Common commands in GitGit help-view common commandsGit help-a-View a list of commandsgit help [command]-View specific commands1.git init-Create an empty repository2.git Add./-Adds all the files in the current directory to the repository3.
There is a requirement for the project to obtain a list of files that are push to the remote repository and to perform a specific analysis of the files. It's natural to think of using git hooks to trigger a script to get a list of files. More anxious to use this feature, use Python with some git
with a distant libraryGit push–u (not required for the first time with-U) Origin master pushes the current master branch to the remote librarygit clone https://github.com/tugenhua0707/testgit cloning from a remote repositorygit checkout–b dev Create dev branch and switch to Dev branchGit branch view all current branchesGit checkout master switches back to the master branchgit merge dev branches on the current branchgit branch–d dev Delete Dev branchGIT branch name to create a branchGit stash to
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 Se
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.