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
Git's fast-forward has been introduced in previous articles, but the introduction is not fine:Http://www.cnblogs.com/charlesblc/p/5953066.htmlThe fast-forward method is that when the condition permits, git directly points the head pointer to the header of the merge branch and completes the merge. is a "fast forward", but if you delete a branch, the branch information is lost.Because Commitsquash is not created in this process to compress some unnecess
This article refer to the Git–useful Tips article translation, improper, please understandThe purpose of this article is to provide a useful reminder of the frequent use of git management projects. If you're new to Git, you can read the references section first, and then read this article later. Before you introduce GIT
First of all, thank you for your support. Some of the content of this blog show the format of a terrible, deliberately adjusted, I hope to be helpful to everyone.
Git has been used for a while in a standalone environment and found that the Git plugin in IntelliJ idea is not perfect. First, the Git local repository in IntelliJ idea must be built under the current
> #git add-i
Interactively add the workspace code to the local code buffer
> #git add-p
The option y/n/a/d/e appears
If you select Y to add the workspace code to the local code buffer, select N or D to terminate the commit operation, select a to add
How to submit code to a central warehouse
1.> #git Add Some-file
#git
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
Common Git commands and common Git commands
Mkdir:XX (create an empty directory XX refers to the directory name)
Pwd:Shows the path of the current directory.
Git initChange the current directory to a manageable git repository and generate a hidden. git file.
Git ignores files and git ignoresGit ignores files:
Git provides a file ignore system. When a directory or file in the workspace is ignored, the ignored files are not displayed even if they exist during status check.In this way, I can ignore the files or directories that do not need to be uploaded or retained (such as dynamically generated logs or compiled files
Problems occurred during git usage and git usage1. The local push error is displayed after the server initializes the git repository.
Remote: fatal: Unable to create temporary file '/home/git/fx_forum/fx_forum.git/./objects/pack/tmp_pack_XXXXXX': Permission deniedfatal: sha1 file'
'Write error: Broken pipeerror:
Git-itHttps://github.com/jlord/git-it2016-08-01In Freecodecamp's guidance learned the git-it.Git-it is a tutorial that guides the use of Git and GitHub, and is said to be the author of GitHub internal Cheng. (in Git-it, found another site called Nodeschool, dedicated to prov
One, the advantages of GIT version managementSay Git is stronger than SVN, where is the power?First, from the deployment of: SVN, CVS are centralized, a server deployment services, all the client-written code to submit to the server. Git is distributed, and everyone can clone the same repository onto their own machine from the same repository.What good is this?1.
See a lot of different things about git fetch and git pull from BaiduPractice:Create a new project from GitHub try,copy to Local. Modify the Readme.txt file on the GitHub website and add a new "alter README"In the local warehouse Readme.txt also added a new sentence, "Add some thing"It is not possible to commit the local code to GitHub now. An error message will appear!!!You should download the code from th
Git command Quick Reference (using git Appendix A) 1. initialize the global user name and email address git config -- global user. name "Your Name" git config -- global user. email "youe@example.com" allows you to set a separate user name and email address cd/path/to/repogit config user for unused version libraries (pr
How to Use git to roll back a single file to a certain version, and git to a certain version
Tentatively this file is a. jsp
1. First, go to the directory where a. jsp is located:
Use git log a. jsp
View the change history of a. jsp
2. Find the version number to be rolled back: for example, fcd2093
Use git re
Check the eclipse version and whether the Git plugin is installedMenu bar Help-AbouteclipseDownload Link:Git plugin package Address: Http://wiki.eclipse.org/EGit/FAQ#Where_can_I_find_older_releases_of_EGit.3FP2 repository URL: Online download linkDownload P2 repository: Download git offline package (click Download will go to the toll page, wait a few seconds to pop up the download window, foreign sites slow
The premise of this summary is that the GIT server has been built and connected through the SSH protocol, see the document "Build git server under Windows XP" "Rhel Server" "Git server use base." This paper uses the git-2012-01-11 of the RHEL5.5 system, the user Root/password,git
When using git, the general usage is CD to the repository directory for related operations, such as there is such a repository, D: \ pygit2 (through git clone https://github.com/libgit2/pygit2.git)The general practice is cd d: \ pygit2, and then execute Git-related commands, such as
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.