the most important, you can view the following learning materials.Learning ResourcesThis article simply records some things, and does not talk about how git works, how to use, because the data is very perfect, use to view.1. Liu Xuefeng git tutorial (Chinese)Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 0013744142037508cf42e51debf49668810645e028876910002. Graphic
Use git--version to view git versions in terminal, often not the latest version.Download the latest git version from the GIT website http://git-scm.com/, after the installation path is:/usr/local/git/bin/
changes and re-put them back into the workspace
Scenario 1: When you mess up the contents of a file in your workspace and want to discard the workspace changes directly, use the command git checkout-file
Scenario 2: When you not only changed the contents of a file in the workspace, but also added to the staging area, want to discard the changes, two steps, the first step with the command git
version fallbackBy using the git log command, you can view the version modification and the version number of each operation, and with these version numbers, we can easily travel through time.You can see here a total of two records, the first one is I add content for Hellow world! Readme.txt file, and then I added the changed line to the file and saved the changes using git add
the system can not be properly installed on the official website download the latest git version installed,It is clear here that the operation is complete, and then everything is installed properly.One thing to note here: If you run the git--version command at this point, you'll find that the git version you're using is still the previous version (Xcode comes wi
$ brew ListIf not, copy the following command to the terminal to enter. Ready to install BrewRuby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"2. See if you have installed the "bash-completion",如果没有,继续往下看:$ Brew Install Bash-completion# # # # #安装完成之后 ######?3. Check to see if your Mac can display hidden files (files that begin with.) If you cannot copy the following command to Terminal returnDefaults write Com.app
SVN that was used all along. Recently work needs to use Git to manage the project, so a little bit of groping, some instructions to record, the right to leave a note.The first thing to do is to sign up for a GitHub account and test the command.
————————————githubConfiguration StartUnder Mac configuration use git to check if
工欲善其事, its prerequisite.In OS X Yosemite 10.10.3, install the latest version of Xcode. You can see that git has been installed under terminal.~ mesut$ git--versiongit version 2.3.2 (Apple Git-55)has been registered and used GitHub, but has been managed remotely under the window System.Now you start setting up Mac manag
file}3. Go to the project directory, enter the command as follows Bower Init and then follow the prompts to fill in the content can be encountered select y/n y can4. Try downloading the file$ Bower Install jquery--saveBower not-cached https://github.com/jquery/jquery-dist.git#* Bower Resolve https://github.com/jquery/jquery-dist.git#* Bower Checkout jquery#2.2.4 Bower Progress jquery#* receiving objects:26% (35/133), 220.00 KiB | 105.00 kib/s Bower resolved https://github.com/jquery/jquery-dist
Mac system git generates SSH public keyWhen using Git repository for code management, the new computer often needs to generate SSH public key to match, Mac system generated git public key process is as follows:1. Check if the machine has a public keyEnter the following comma
$ brew ListIf not, copy the following command to the terminal to enter. Ready to install Brew" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "2. See if you have installed the "bash-completion",如果没有,继续往下看:$ Brew Install Bash-completion# # # # #安装完成之后 ######3. Check to see if your Mac can display hidden files (files that begin with.) If you cannot copy the following command to Terminal returntrue ; Killall Finder4. Add
支)6. Get to the local warehouse git pullSecond, the git command used in the company's weekdays (the process of committing the code to git)1. View local changes to those filesgit status2. Back up the contents of the current workspace, read the relevant content from the most recent commit, and make the workspace guarantee consistent with the last commit. At the sam
Click to read the originalFor my git command line small white, git comes with a variety of contrasting tools, miss the previous SVN turtle + beyondcompare days ... After struggling with the GitHub client, I finally researched. The original git comparison can also call third-party tools, well done!Below to the popular science if you set up a third-party comparison
, if not successful, you will Google the error of the newspaper.When you're successfully, let's set up your github login and login mailbox in git config to execute the following two commands:git config--global user.name "Your name"git config--global user.email "[email protected]"Now we can upload the code!!Pull your project code into this folder, execute the command, gi
your computer. Run Rails-v prompt is not installed, run ruby-v display is 2.0.0, run rbenv global 2.1.4 or unchanged. Run Echo ' eval ' $ (rbenv init-) ' >> ~/.bash_profile (writes the rbenv initialization script to the file) (assuming insufficient permissions.) Change the file owner to user) $ source ~/.bash_profile (run the file) and then run Ruby-v and rails-v to be able. 10. Develop Ruby on railshttp://openbook4.me/projects/9211. Create the project and upload to github$
installed, the execution ruby-v display is 2.0.0, after the implementation of RBENV global 2.1.4 or unchanged. At this time execute $ Echo ' eval ' $ (rbenv init-) "' >> ~/.bash_profile (write the Rbenv initialization script to the file) (if the permissions are insufficient, modify the file owner for the user) $ source ~/.bash_ Profile (execute the file) and then execute Ruby-v rails-v. 10. Develop Ruby on railshttp://openbook4.me/projects/9211. Create the project and upload to github$
-add ~/.ssh/id_test_rsaRe-enter SSH-T [email protected] If the prompt is successful, we will continue, if not successful, you will Google the error of the newspaper.When you're successfully, let's set up your github login and login mailbox in git config to execute the following two commands:git config--global user.name "Your name"git config--global user.email "[email protected]"Now we can upload the code!!P
Reprint Please indicate the source: http://blog.csdn.net/android_ls/article/details/46287879
Git local operations1. In the directory specified on your Mac, create a new "local repository" with the following command:Git initThe operation on my computer is as follows:2. Enter the directory you specified on your Mac to see what's changed and
1. See if Git is currently installedwhich -a git/usr/bin/git$ git--2.3. 2 (Apple git-)The current Mac has its own 2.3.2 git2, if not installed, or the installed version does not meet the version you need, go to http://
Sourcetree is a free Git and Hg client under Windows and Mac OS X, as well as the mercurial and Subversion version control system Tools. Support for operations such as create, clone, commit, push, pull, and merge. Sourcetree has a beautifully simple interface that greatly simplifies the way git works between developers and CodeBase, which is useful for develo
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.