I have applied for a git account for a long time, but it has never been used. Today I tried several commands.
I found that it is very important to understand the principle. I used SVN before and did not know the principle of git. Therefore, I am very confused about the command description.
If someone is the same as me, it is strongly recommended that you refer to [1], which briefly explains the meaning of
as you add the key for each computer to GitHub,You can push it to GitHub on every computer.To add a remote libraryOnce you have created a git repository locally, you want to create a git repository on GitHub and synchronize the two warehouses remotely, so that the repository
Yesterday, the gpio simulated SPI control wm8768 codec was implemented, so I had to submit the code and finally learned how to use the GIT repository. I used to ask my colleagues for help, I always feel that I have to learn well. After uploading the code, I think it is actually not very difficult. In the morning, under the guidance of Ginger, I finally learned how to build a local
I wrote an article about http://blog.csdn.net/commshare/article/details/20526369 before.
The feeling is still not clear, so today again tried several times, summed up as follows:
1. Build the remote warehouse first
Distal:
Git--bare init
It's OK.
Attention
after joining the--bare, don't add a new file directly to the Git directory, and don't push it.
Otherwise there will be an error:
Fatal:this operat
1: Apply git account to create warehouse, get remote warehouse address Https://github.com/****/****.git2: Enter the project root directory by command CD: ************3: Install the GIT environment, set environment variables4: Execute git command git status--View all file status under current project, automatically gene
How can git achieve remote synchronization without using remote repositories such as GitHub?
Submit the code before work. After gOing hOme, sync the code to continue development and submission. The next day, the company will continue ......
Here is an experiment: using the directory synchronization function of the online storage, we create a "pseudo remote repository ".
Take Kingsoft disk as an example:
1. Create a warehouse named Git-repositionmkdir home/sunjf/git-repositionNote: HOME/SUNJF can be specified as the path you want below2. Initialize the WarehouseCD ~/git-reposition//Enter the warehouse directoryGIT init//Initialize RepositoryAt this point, the. git file will be generated in the
For the git commit has been very cautious, feel accidentally will step on the inexplicable pit.It's not,One day commit encounters the on branch master nothing to commit (working directory clean)A look at the meaning. Is your branch clean?Clean? Excuse me?Then GIT push Origin master, a long wait for the pop-up fail:#¥%@ (omitted here, we value points)Please make sure the correct access rights and the
After the server is installed after git1. Execute git init aa.git--bare in the Repositories Warehouse folder to create a central library of AA (note that the current logged-on user must be a user of git when establishing the AA repository and ensure that/data/repositories/ Aa.git file has Write permission)2. Execute git
InstallationSince I'm using Ubuntu, it's easy to install, input:sudo apt-get install gitIf it is a different Linux version, you can install it directly from the source. First download the source code from the GIT official website, then unzip ./config , make then sudo make install Enter:, these several commands to install just fine.As for Mac and Windows install git, in Liaoche's official website has the d
One. Install Git version control software locallyTwo. Configure GIT to set up user informationgit config--global user.name "Jack"git config--global user.email "[Email protected]"git config--list get git configuration informationNote:The--global parameter of the
Refer to an online article "to build git repository on a USB stick" 1. I often have such needs, work, home need to the same code or document editing, and want to be synchronized in different places; If the privacy is not so strong, you can directly use the GitHub escrow ha, of course, pay is also private ~ ~ 2. First create a repository name on the USB flash dri
1. Download a git software and install it on the Internet2. Generate SSHRight-click on the desktop, choose Git Bash here, go to the operator interface, enter "Ssh-keygen-t rsa-b 4096-c" *********@***.com (mailbox at coding.net registration) "" Command.The next step is to change the new text document name to "Id_rsa", continue with the setup password, and then enter the command "cat ~/id_rsa.pub" to generate
As a distributed repository control system, Git is the owner of the local repository and can create branches and milestones in the local repository.The problem arises when multiple people are needed to collaborate:1. How to avoid branching clutter on shared repositories because users push all local branches to the shared repo
git--Getting started with uploading items to a remote repository GitHub (EXT)-chen_s-Blog ParkHttp://www.cnblogs.com/Chenshuai7/p/5486278.htmlNote the issue:1. At that time in the MyEclipse changed the code, and then all kinds of add,commit can not change, find a half-day reason, and finally found in MyEclipse Riga is a copy of the project, is the original Git
Execute the following command in the root directory of your own project1 //initializing the Git local repository2 git init3 4 //add files to a local git repository5 git Add.6 7 //submit files to a local git repository8Git commit-m"Initial Import"9 Ten //Establish a remote wa
Preparatory work:First you need a GitHub account, all you have to register first!https://github.com/We use git to install the Git tool first, which is given here and installed directly after the download:https://git-for-windows.github.io/1. Go to GitHub home page and click New Repository to create an item2. Fill in the
Previously, the company built a git repository, and the code we wrote was put on it. use cygwin (which includes ssh-keygen for generating SSH private key and public key certificates, git for downloading and synchronizing Source Code) to ensure that git can be used in the same way on Windows. the
readme.mdGit commit-m "First commit"Git remote add Origin ssh://[email Protected]:29418/linoxide.com.gitGit push-u Origin MasterReplace the user name arunlinoxide with the user name you added.To push an existing warehouse on the command lineGit remote add Origin ssh://[email Protected]:29418/linoxide.com.gitGit push-u Origin MasterNote: It is strongly recommended that everyone modify the username "admin" password.ConclusionCheer it up! We have instal
Clone a warehouse from the GitHub:
git clone git@github.com:username/repo.git
To delete a local warehouse:
Quincy_c@quincy Mingw64/gitskills/gitskills (Master)$ git Branch* Master
Quincy_c@quincy Mingw64/gitskills/gitskills (Master)$ git init # initialize warehousereinitialized existing
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.