First, understand a few basic concepts:
Origin: Default remote version library;
Master: Default Development Branch;
(1) Git log
View the Submit log. will show up every time you submit. As shown in figure:
。
(2) Git log--pretty=oneline
You can use this command if you feel that the output is too much. The information is displayed on one line. As shown in figure:
。
(3)
Git command practice, git command
I. Commands
Git checkout-B branch name // create a branch and switch to the Branch
Git checkout branch name // switch to this branch
Git merge branch name // merge the branch to the current Branch
Git
ObjectiveI have always wanted a piece of this stuff, because when I first contacted, I also carefully read the Liaoche tutorial, but it seems I think a little bit more, and will bring me a lot of redundant and repetitive operating burden, so I hope to compress it in my work cost, but search for a while did not find a satisfactory tutorial, A new year to comb your own experience.Maybe the boys are more big God, think Git is so simple, it has been thoug
Git, this goods can be called artifact, use it will no longer want to use other VCs, like on the high-speed do not want to go the same road.
The power of Git is that you can create warehouses in any shared path within your LAN without having to run any services. All operations are local based. This is not difficult to understand can be directly in the fast disk.
Generally, larger companies have their own
Step is relatively simple
The main is to record the implementation of the process of the memo.
More detailed tutorial: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 00137583770360579bc4b458f044ce7afed3df579123eca000
CentOS Yum source does not have git and can only compile and install itself
Ensure that the dependent packages are installed
The difference between git init and git init–bare
Using the command "Git init--bare" (Bare Chinese means: bare, bare) the initialized repository (known as bare repository) only generates a class of files: Files that are used to record the repository history of the. Git directory, but not the actual project source fil
We have successfully added and submitted a Readme.txt file, now it is time to continue working, so we continue to modify the Readme.txt file and change it to the following:
Git is a distributed version control system.
Git is free software.
Now run the git status command to see the results:
$ git Status
# on branch Ma
1. Git concept
1.1. Git library is made up of three parts
The Git repository is the. Git directory that contains the contents of the document we submitted, and Git can track the documents it manages based on the content of the document index, thereby enabling versioning of t
I've been using git for almost 18 months and feel like I'm already very knowledgeable about it. Then Scott Chacon, from GitHub, came over to train LVs (LVs is a gambling software vendor and developer, a contract that began in 2013), and I learned a lot on the first day.
As someone who feels good about git, I think sharing some valuable information from the community might help someone solve a problem witho
Using SSH over the HTTPS portSometimes, firewalls refuse to allow SSH connections entirely. If using HTTPS cloning with credential caching are not a option, you can attempt to clone using an SSH connection made Ove R the HTTPS port. Most firewall rules should allow this, but proxy servers may interfere.GitHub Enterprise Users:accessing GitHub Enterprise via SSH over the HTTPS port was currently not supported.To test if SSH over the HTTPS port is possible, run this SSH command:SSH-T-P 443 [email
When we need to delete 暂存区 or 分支 on the file, and the workspace also does not need this file, you can useWhen we need to delete 暂存区 or 分支 file on, but local need to use, just do not want this file to be version controlled, can usegit rm --cached file_path
File_path to file path
Yin FengLinks: Https://www.jianshu.com/p/337aeafc2f40Source: PinterestCopyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the sour
When I recently learned about Git and learned to GitHub, there was a command that git push would run out following questions:Upon enquiry:The matching--"Matching" parameter is the default behavior of Git 1.x, which means that if you perform a git push without specifying a branch, it will push all your local branches to
Install Git on LinuxFirst, you can try typing git to see if the system has git installed:1 giIf you happen to be using Debian or Ubuntu Linux, you sudo apt-get install git can simply complete the git installation in one piece.If it is a different Linux version, you can ins
A. What is Git? Git is currently the world's most advanced distributed version control systemtwo. Basic KnowledgeCentral SCM (software Configuration Management)
Server: Single Database
Client: working directory, status
No-center SCM
Anyone can be a server
Working directory is also a warehouse
No network connection required for operation
three. What are the similaritie
Http://blog.csdn.net/qinjienj/article/details/7475890
Developers often encounter this situation: it takes a few days to create a new function, and has changed more than a dozen files. Suddenly, a bug needs to be solved urgently, and then a build test group is given. Before the advent of git, manual backup was basically required, which was time-consuming and error-prone.
In short, the GIT stash command is
GitHub is a code repository (a tool for managing code) that can be shared with everyoneGit is the tool for extracting files from GitHub or uploading local files to GitHub (equivalent to SVN)Uploading projects with GitStep One: (User and mailbox for your GitHub registered account and email)$ git config --global user.name "startstudysmile"$ git config --global user.email "[emailprotected]"Step two: Set up SSH
Solution of Fatal:remote Error:you can ' t push to git://github.com/username/*.git problem
Today, when Git push
Fatal:remote error:
can ' t push to git://github.com/username/*.git use
git@github.com:username/*.
1, Your Branch and ' Origin/yh_branch ' have diverged 2, NPM run-s precommit (node v8.9.3) 3, you are currently rebasing H ' yh_branch ' on ' d6e7f13 '. ——————————————————————————————— 1, Your branch and ' Origin/yh_branch ' have diverged
Huidemacbook-pro:graph huiyu$ git statusOn Branch Yh_branchYour Branch and ' Origin/yh_branch ' have diverged,and have 1 different commits each, respectively.(use "Git pul
Git learning path (5)-synchronization to remote repository and collaboration among multiple people, git pathToo many rows too many rowsIntroduction
We have written the file and added it to the version library, but this is not done yet. We also need to synchronize it to the remote repository of GitHub. Here we will take the drag project we just started as an example, go to the
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.