documentation.txt
Git commit-m "documentation.txt file removed"
Git push
Reset GIT
If you want to reset your index and working directory to the status of your last commit or any commit, the terminal executes the following command:
Git reset -- hard commit number/HEAD
Git St
Install and use Git (1). install and use git
I had nothing to do with writing a demo. I wanted to upload it to GitHub and found that I had to use git for upload. So I had to know about git
processed
Git push Origin branch name
11. Submit the Merge Request
After submitting the merge request, the code approval team colleagues will review the submitted code, and no problem will agree to merge requests and merge the code from the test branch into the master branch
Git using tips
The use of Stash
Source: Bugenhua's Blog – recommended. Teach you how to use git in detailHere are some of them, for more information, please refer to Bugenhua's blogGit basic common commands:MKDIR:XX (Create an empty directory XX refers to the directory name)
PWD: Displays the path to the current directory.
Git init turns the current directory into a manageable
current directory into a manageable git repository that generates hidden. git files.
git add xx adds the xx file to the registers.
Git commit–m "XX" Submit file –m is followed by comments.
Git Status View warehouse status
git dif
detect it.(5) Offline: Working offline is an important feature of Git, which is unthinkable in the previous era of exclusive version control.(6) There are many more ...disadvantage: Speaking of shortcomings, on the existing version of the control system compared, almost can not find obvious shortcomings, the only obvious is the code confidentiality is poor, once the developer to clone the entire library can fully disclose all the code and version inf
. fallback$ git reset HEADDiscard staging Area changes, undo staging area's changes (Unstage), and re-return to the workspace$ git Reset--Hard head abandons the workspace and index changes, and the head pointer still points to the current commit. Undo the merge without commit, in fact the principle is to abandon the index and workspace changes, Because no commit changes exist only in the index and workspace
/cfg_k86s7_kst-t5.cfg
2. Git ST//View the Add command execution results (priority to detect if the repository is updated) git fetch//detect if there is an update, if there is an update (add new code), you need to perform git pull first
3. Git ci-m "add cfg_k86s7_kst-t5.cfg"//commit is equi
First, create a GitHub repository (warehouse)1. Login to GitHubTo create a github repository, you first need to login to the Github,github URL: https://github.com. If you don't have a GitHub account, you'll need to sign up for a GitHub account, not here to show you how to sign up for GitHub.2. Create Repository (warehouse)There are two ways of creating a repository warehouse.2.1. Use the downward inverted triangle in the upper right corner to create i
Git is a simple getting started tutorial. It is a simple tutorial for students who have never dared to use Git.
It has been almost half a year since I started to work in February 12, 2014. I still remember the surprise when I first came into contact with the centralized version control tool SVN. This is for me who have been developing it independently, only then
server.
Test whether the key logon is successful$ ssh git@yourserverip
Create a git Server Remote Repository
Go to the/opt/git directory. If not, create
Create a repository folder, for example:# path: /opt/git$ mkdir gitdemo
Initialize to a remote Repository$ git init
Git is a good version management tool. Now I am working on a simple application development and want to use git for management. After Google's Configuration documentation, I still suffered more than N setbacks. Some documents are of low quality, which wastes a lot of time ......
Well, let's get started:
Install necessary git
When working with Git pull code, colleagues often encounter conflicting situations, prompting the following information:
Error:your local changes to ' C/ENVIRON.C ' would is overwritten by merge. Aborting.
Please, commit your changes or stash them before you can merge.
This means that there is a conflict between the updated content and the locally modified content, either by committing your changes or by
users User1 and User2 created from the share repository clone content. and modify the second line of the file Conflict_test file at the same time, after User1 executes the push, the user2 execution push will take the following scenario:
Figure 1
In the log message, you are prompted to use Git pull, and then try git pull to see the result:
Figure 2
The informatio
Learn more about Mac-connected git operations for MacFirst on the service sideFirst: Create a new warehouse1, Cd/users/username/projectsUse the Linux command to enter a folder that you want to create to share with others.2,sudo git--bare initBuild a git repository.The "git init–bare" method creates a so-called bare rep
1.When you pull a git project, you can directly specify the number password in the address as follows to pull it down.Https://username:[email protected] Note that because the address is resolved by the @ symbol as the address information and the user information is separated, so in the user name and password if there is an @ symbol, you need to escape to%40 to normal pull and push 2. After using this method to pull the project, if there is a reset
problem on the line6. After the test, merge the repair branch into the main branch and push it to the production environment7. Switch to the original demand branch and continue workingThe initial status is as followsThrough Branch/checkout/commit and other operations, to do the 5th step above, the status is as followsNext, merge the hotfix branch and then deploy to the online environment.$ git checkout master$ gi
Easily use git commands to create code repositories and git command code repositories
We can easily use the git command to upload code modifications. In this article, we will learn how to use
After falling in love with GitHub, I plan to use git for management.CodeNow
Actually, using git is relatively simple.
1. You need to have a Linux instance. Although there are also Windows clients, we recommend that you use Linux.
Of course, you have to install git befo
From February 12, 2014 to work until now, has been nearly half a year, but also remember the first contact with the centralized version of the control tool SVN surprise, this has been independently developed for me, just understand that the original code can also be managed like this! Of course, now the understanding of SVN, but also know the operating principle, to meet the work of some simple code version control. For git this version of the control
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.