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
1, (first into the project folder) by command git init to turn this directory into a repository that git can manageGit init2. Add the file to the repository, using the command git Add. Add to staging area inside, don't forget the decimal point ".", meaning to add all the fil
Manage these remote repositories so thatPushOrPullData
Add remote database
Remove obsolete remote database
Manage various remote database branches
Define whether to track branches
View the current remote database
You can use the GIT Remote Command to list the short names of each remote database.
You can also add the-V option to display the corresponding clone address:
If the
git commands git remote-View the name of the repository - v -View the address of the remote repository -origin -The name of the remote repository git push repository name (de
First, create a git warehouse
1. Login to GitHub account
Https://github.com
2, click on the top right corner "+", select "New Repository", as shown:
3, operation as shown:
4, enter the following interface:
5, new Xcode project, open the terminal, CD to the project root directory, and then execute the following command: $ git init$
Many times, in order to manage the code we write, we use a git remote repository for management and backup. Prevent code from being tampered with or deleted by others. So how do you create a remote repository?1, we must have a remote server side, here can be any one computer as a server, create the steps:[Email protected]:~$ pwd/home2/boxbuilder[Email Protected]:
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
equivalent to Microsoft's MSDN master disk. AOKP is an "Android Open-Source Kang Project", which has a "Kang" higher than AOSP ". In the Android community, Kang indicates that this is a custom ROM and a non-governmental ROM. CM is short for CyanogenMod. the Cyanogen team is the world's largest third-party ROM compilation team, covering a wide range of models. Among the well-known domestic ROM such as MIUI and hammer ROM are implemented based on CM. S
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 pan
Recently, the local server installed with GIT has crashed, and there is no way to temporarily migrate the repository to ensure the normal operation of the project.
Right-click the project root directory and execute
Query the remote address of the current Warehouse
Git remote-V: view the URL of an existing remote Reposito
. Login to GitHub system. In the top right corner, click Account Settings--->ssh public keys---> add another public keys to copy your locally generated key into the inside (Key text box), click on Add key to OK4. Then open git to test if the connection is successful$ ssh-t [email protected]If prompted: Hi defnngj you ' ve successfully authenticated, but GitHub does not provide shell access. It means you're connected.5. Set User information:$
First, the problem description
When I commit a git push to a remote repository, GIT will get stuck for half a day, like in the image below, only press CTRL + C to exit.
Second, the operating environment
Win7 + Git Bash
third, problem solving
Adding the Sendpack.sideband property and resetting it to false resolve
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
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.-
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
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.