Preparatory work:First you need a GitHub account, all you have to register first!https://github.com/We use git to install the Git tool first, which is given here and installed directly after the download:https://git-for-windows.github.io/1. Go to GitHub home page and click New Repository to
In the previous chapters we explained the Jenkins combined with. NET platform tools and some third-party tools for automatic Project Restoration, automatic compilation, automated testing, and automatic publishing. However, there is a key step in automating the process of listening to the source repository changes and pulling up the latest code from the repository before performing the steps just described.L
information: Users say, email, password
After registering, jump to the following page, select the Warehouse purchase method (private warehouse, others can not access, to permissions), generally we play choose free:PS: Right, at this time your mailbox may receive a verification message, click to complete the verification.
Next, create a repository of our code:
Add a point content
figure
I said, I am a d drive here. You need to change it. If you install it on another disk, you will fill in another location. This goods refers to the above msysgit installation location.
Click OK. Now we can configure the GIT repository www. bKjia. c0m.
Find a Git Bash icon on your desktop or install msysgit.
Then, I created a
First, clone a remote git repository and CD into it:
$ Git clone git: // example.com/myproject$ CD myproject
Next, look at the local branches in your Repository:
$ Git Branch * Master
But there are other branches hiding in
The foreign web site GitHub provides a git warehouse hosting service, and the domestic [email protected] also provides hosting services, so just sign up for a github account or [email protected] AccountYou can get a git remote repository for free. GitHub creates a public library that's free, and private libraries pay a bit of money. But [email protected] are free
Android Studio usage notes: Git configuration and first submission to repository, androidgit
Git client URL: http://git-scm.com/download/
Download the corresponding client based on your own platform. Take the Mac system AS an example. After the client software is installed and configured, open the AS configuration pan
1th step: Create SSH KeyIn the. SSH directory under the user directory, see if there are two files for Id_rsa and id_rsa.pub, and if not, generate a key pair with the following command: $ ssh-keygen -t rsa2nd step: Login to GitHub, open "Account Settings", "SSH Keys" page:Add content for Id_rsa.pub3rd step, create a remote repositoryOn the GitHub Web page, follow the prompts to
Guide
Git version control system requires a server side, and on GitHub to create a private git server-side warehouse that touches the charges, so here we use Dropbox free space to take a look at the tutorial to build a private git repository on Dropbox.
One,
Android Studio usage notes: Git configuration and first submission to repository, androidgit
Git client URL: http://git-scm.com/download/
Download the corresponding client based on your own platform. Take the Mac system AS an example. After the client software is installed and configured, open the AS configuration
We sometimes encounter such problems when using Git clones or other commands, as shown in the figure:
Fatal:could not read from remote repository.
Please make sure your have the correct access rights
and the repository exists.
Fatal:could not read from remote repository. Please make sure your have the correct access
Using GitHub as a remote repositoryGitHub website: https://github.com/
1. Create SSH key
If you do not have a. SSH directory, or the. SSH directory does not have Id_rsa and id_rsa.pub these two files:Ssh-keygen " [email protected] "Copy the id_rsa.pub to SSH key. Create a new key.
2. Add a remote Library
Log on to GitHub and then, in the upper right corner, find the "
git mistakenly commits a file that you do not want to commit, and the method you want to remove from the repository
Example: Remove Lunch_history from the repository
Git filter-branch–tree-filter "rm-f lunch_history" HEADWill output the following information:Rewrite 48A23742F0B5C35127DAA40A1303C2AF7976BAAC (29/29)Ref
1. Tell git your name and email, and the name will appear in the commit record.git config--global user.name "your name"git config--global user.email "your email"2. Create a local warehouseGit init #在当前目录下创建一个新的空的本地仓库Touch Readme.md #创建帮助文件git add readme.md #添加帮助文件git commit-
1 Install git in the system and enter the following command in terminalsudo apt-get updatesudo apt-get install git2 Configure Git, enter the following command in terminalgit config--global"Your Name"-global"[email Protected]"Use the following command to see the configuration you justgit config--list3 Configure the Pycharm, clickFile--setting--version Control--git
. Right-click on the project, select Team--shareproject, choose git (This step is to configure Git)New project If there is a previous project, it will automatically go to the previous path, this time we need to create a project ourselves below (directly in the first line to enter the path point finish). 3. Add success, Direct Project right button, select team in
Upload a local project to a remote Git repositoryFirst login to the remote git repository, I use the Oschina code cloud, manually create the corresponding project projectGo to the local engineering directoryExecute the relevant commands in the following order:Git init--create
About Git is not familiar with, the previous company's project building, version control this piece, are dedicated people do, of course, also used in Git project also contains the Cocoapods class library, the current company is relatively busy, so the study of the next Git, with the Git.oschina.Using git non-command to
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.