First, use the git RM command
1. Preview the file you want to delete
Execute git rm-r-n--cached "bin/" , which shows the file table preview to be deleted
2. Remove version Control actions
Execute git rm-r--cached "bin/" to delete the file's command.
Execute git c
--global user.email "[Email protected]"7. Submit ChangesUse the command git add * to commit all changes to the cache (local), waiting to be sentUse the command git commit-m "Modify information" to submit the changes to head (local) and describe what modifications were made8. Commit changes to the remote serverUse the c
Environment: vs2013 + code cloud (https://git.oschina.net /)Error description:When you use git in vs2013 to publish the master branch of the solution,"The local branch Master cannot be published to the remote repository origin because a branch with the same name already exis
file, you need to add a backslash "\" to escape.
4.git of Staging Area
Git's content for staging area is maintained in the . Git/index file.
Local branch and merge of 5.git
git
In the morning test script, accidentally in this article "git–setting up a remote repository and doing a initial push" see a fun thing about Git, recorded here.Add the following in the ~/.BASHRC, as prompted by the article, to let the prompt display the name of the current Git branch. I changed the format of the prompt
Android advanced intermediate tutorial-1.1 Local Git Usage DetailsAndroid advanced intermediate tutorial-1.1 Local Git Usage Details
Tags (separated by spaces): Android advanced
1. Introduction
In the previous basic Android series, we have explained the simple use of Git. In
This error occurred during the branch switch in idea, causing the switch to fail: Error:the following untracked working tree files would be overwritten by checkoutThe error indicates that some of the problems caused by untracked working tree files. So as long as the solution of these untracked files can solve this problem.
Workaround:
open sourcetree through the command line, into the local version of the
Your branch is ahead of ' origin/xx ' by 1 commitIndicates that the local commit has not yet been submitted to the Central service.To view remote branch conditionsGit branch–aCommit a local commit to a remote servergit pushAttention:It is to commit the log of the current
, you can see the project name, and after entering the project, you can see some git related files
Enter the project (that is, the folder in which the. git is located)
viewing remote branches
Git branch-r
Such as:
Establish local Correspondence
This is in parallel development. due to incorrect merge/branch operations, branch B is mixed into branch a'sCodeBut branch B needs to be released to the production environment before Branch. This article records how to remove the
, delete, retrieve, reset modified files
git help
View File diff
git help
View Commit record
git log git log
TIG
you can use TIG instead of diff and Log,brew install TIG on your Mac
Git Local
There is a problem with submitting a local branch to the remote library for Ubuntu:Solution: Execute the following command:git remote add origin [email protected]:yourusername/test. GitYourUserName: Name of the GitHub registryTest: for Remote library name:The commands to be executed are:git remote add origin [email protected]:fwl8888/f01. gitExecute the push submission againThe Push Code
Android Advanced Intermediate Tutorial--1.1 git's local usagetags (space delimited): Android advanced1. IntroductionIn the previous Android Basics series we explained the simple use of Git, the Advanced series weA systematic explanation of git, the use of basic commands, the concept of workspaces, staging area, historical warehouses, remote warehouses,
Git can use four major protocols to transmit data: Local transport, SSH protocol, Git protocol, and HTTP protocol.
1 Local protocol
The remote repository is another directory on the hard disk in this protocol. This is common when each member of the team has access to a shared file system (for example, NFS), or a relati
Aug 6 11:37:08 2014 + 0800
Some change
Commit quota: [email protected]> date: Wed Aug 6 11:11:47 2014 + 0800 change my namecommit quota: [email protected]> date: wed Aug 6 10:53:18 2014 + 0800 add hello.txt
All information is recorded. Commit is the corresponding version number. If you think too much,Enter $ git log -- pretty = oneline to display only commit and remarks.
Then you find that this change has an error but has already been submitted to
Today, I encountered such a problem, tossing a half-day, is to upload their own local code to someone's remote branch.The first thing to do is to clone someone else's project to the Local: Git clone + project addressThen go to project directory: CD + cloned project directory nameThen switch branches, git checkout +
will be displayed. If this parameter is not specified, the GIT log will be displayed from the commit .)
$ Git log
Commit b160e923d62a6568233d4278551893bd00c3e1c0Author: Big Data Date: Wed Aug 6 11:37:08 2014 + 0800
Some change
Commit quota: [email protected]> date: Wed Aug 6 11:11:47 2014 + 0800 change my namecommit quota: [email protected]> date: wed Aug 6 10:53:18 2014 + 0800 add hello.txt
All informat
Summary: When you use GIT for project development, you need to communicate with the remote server. One of the most frequently used places is getting stored objects from a remote repository. We know that git pull equals the result of git fetch and git merge. So where is the object that
GitHub Upload Project Method:Install Git on your computerGit Bash HereThe general process for creating and correlating local git repositories and remote repositories is:1. Initialize this local folder as a Git manageable repositoryGit initNote:
Git server configuration, local clone submission, server acquisition, git Server Configuration
1. install and configure Git on the server
Related Links
Related Links
Note ssh-keygen and modify permissions
Permission: related link
2. Local Retrieval
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.