Command parameters--getGets the specified configuration item.--globalFor write options: Global configuration, configure the parameters in ~/.gitconfig instead of the. Git/config in the Warehouse directory. For read options: Only the configuration is read from the ~/.gitconfig file.--localFor write options: Configure the parameters to the. Git/config in the warehouse directory, which is the default setting.-
The command is as follows:1: Locally created branch dev[Email protected]/d/home/myself/symfony (master) $ git branch dev2: The following is the submission of the local branch to the remote repository[Email protected]/d/home/myself/symfony (master) $ Git push origin devtotal 0 (Delta 0), reused 0 (Delta 0) to [email prote Cted]:turingtd/symfony.git * [New branch]
1th step: Create SSH KeyIn the. SSH directory under the user directory, see if there are two files for Id_rsa and id_rsa.pub, and if not, generate a key pair with the following command: $ ssh-keygen -t rsa2nd step: Login to GitHub, open "Account Settings", "SSH Keys" page:Add content for Id_rsa.pub3rd step, create a remote repositoryOn the GitHub Web page, follow the prompts to create a4th step, connect the local and remote libraries
local library = Remote LibraryIn the local
Environment is Windows1. First install git, download the git install package, this Google is good2. Sign up for your git account https://github.com3. Building a WarehouseFill in the name last that initialize this repository with a README best hook up4. Cloning a warehouseOpen the installed
Android Studio usage notes: Git configuration and first submission to repository, androidgit
Git client URL: http://git-scm.com/download/
Download the corresponding client based on your own platform. Take the Mac system AS an example. After the client software is installed and configured, open the AS configuration
Guide
Git version control system requires a server side, and on GitHub to create a private git server-side warehouse that touches the charges, so here we use Dropbox free space to take a look at the tutorial to build a private git repository on Dropbox.
One, create a remote
readme.mdGit commit-m "First commit"Git remote add Origin ssh://arunlinoxide@localhost: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://arunlinoxide@localhost:29418/linoxide.com.gitGit push-u Origin MasterNote: It is strongly recommended that everyone modify the username "admin" password.ConclusionCheer it up! We h
git mistakenly commits a file that you do not want to commit, and the method you want to remove from the repository
Example: Remove Lunch_history from the repository
Git filter-branch–tree-filter "rm-f lunch_history" HEADWill output the following information:Rewrite 48A23742F0B5C35127DAA40A1303C2AF7976BAAC (29/29)Ref
I have just started to encounter some problems in cloning repository (warehouse) from the bonobo server using the Git GUI, as shown in:Later, some people encounter similar problems, get a solution to the idea, please refer here. This problem occurs because the remote Repository (library) to be cloned is an empty library. Then we'll find a "content" Remote library
Inside the git window:Using Git to create a repository1. Using Commands mkdir ABC , ABC is a filename and the reader can name it by himself.2. Using Commands CD ABC Open the ABC folder3. Use the command git init to make the contents of this folder into a repository that git
1. Tell git your name and email, and the name will appear in the commit record.git config--global user.name "your name"git config--global user.email "your email"2. Create a local warehouseGit init #在当前目录下创建一个新的空的本地仓库Touch Readme.md #创建帮助文件git add readme.md #添加帮助文件git commit-m "Submit Comment"3. Connect remote
Using GitHub as a remote repositoryGitHub website: https://github.com/
1. Create SSH key
If you do not have a. SSH directory, or the. SSH directory does not have Id_rsa and id_rsa.pub these two files:Ssh-keygen " [email protected] "Copy the id_rsa.pub to SSH key. Create a new key.
2. Add a remote Library
Log on to GitHub and then, in the upper right corner, find the "Create a new Repo" button to create a new warehouse.
3. Local upload (first set up is a hint
1 Install git in the system and enter the following command in terminalsudo apt-get updatesudo apt-get install git2 Configure Git, enter the following command in terminalgit config--global"Your Name"-global"[email Protected]"Use the following command to see the configuration you justgit config--list3 Configure the Pycharm, clickFile--setting--version Control--git
#!/bin/bash# The script uses the NFS file system, then does a soft connect to the/home/git directory, then sets the appropriate permissions and so on.#git_dir=/mnt/nfs/git/Git_home=/home/gitRead-p "Please input the new project name ..." New_proCD $Git _dirIf [-D $New _pro]; ThenRM-RF $New _proMkdir-p $New _proElseMkdir-p $New _proFi#chown-R git:git $New _proCD $
Upload a local project to a remote Git repositoryFirst login to the remote git repository, I use the Oschina code cloud, manually create the corresponding project projectGo to the local engineering directoryExecute the relevant commands in the following order:Git init--create an empty Git
We sometimes encounter such problems when using Git clones or other commands, as shown in the figure:
Fatal:could not read from remote repository.
Please make sure your have the correct access rights
and the repository exists.
Fatal:could not read from remote repository. Please make sure your have the correct access
Tags: lease span color which content already ASE problem managementWhen we use Git clone or other commands, we sometimes encounter these kinds of problems,Fatal:could not read from remote repository.Sure you have the correct access rightsand the repository exists.Fatal:could not read from remote repository. Please make sure the correct access rights and the
GitHub
GitHub is a managed platform for open source and private software projects because Git is hosted only as a unique repository format, so it's called GitHub.GitHub was launched on April 10, 2008, with features such as subscriptions, discussion groups, text rendering, online file editors, collaboration maps (reports), Code Snippets Sharing (Gist), in addition to gi
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.