1. New remote library :

for example :http://git.oschina.net/intval/learngit

2. Locally generated ssh secret key

ssh-keygen -t rsa -C "intval@163.com"

Just go all the way back , You need to enter the password twice in the middle .

When it's done :C:\Users\Administrator\.ssh There is a .pub Postfix file , Open the public key generated by copy all

3. Add public key to account number :

A. Access to personal data :http://git.oschina.net/profile

B. Add a public key to the web page : Paste the public key you just copied

4. New local library , Note that the directory is the same as the remote library name

mkdir learengit
cd learengit
touch index.php
git init
git remote add origin git@git.oschina.net:intval/learngit.git
git pull origin master
git add .
git commit -m "add file-indx.php"
git push origin master

OSC More articles about pushing local libraries to remote Libraries

  1. Remember to use it once commit Submit a large file can not be pushed to the remote library to solve the problem process and git rebase Use

    Remember to use it once commit Submit a large file can not be pushed to the remote library to solve the problem process and git rebase Use Catalog Large files cannot be saved push To remote warehouse problem commit The large file cannot push To remote library solutions git filter ...

  2. git After creating a new local branch, push the local branch to the remote library , Use git pull perhaps git push It's a mistake

    It's because there's no connection between the local branch and the remote branch  ( Use git branch -vv   You can view the relationship between local branch and remote branch )  . According to the command line prompt, just execute the following command git branch --set-upst ...

  3. git Local libraries push remote Libraries Solutions to version conflicts

    Reference resources : http://blog.csdn.net/shiren1118/article/details/7761203 github Resolution of conflicts between version on and local version $ git push XXX ma ...

  4. Git Push local library content to remote

    Interaction between local library and remote library 1 . Push the contents of the local library to the remote library A. Create a local warehouse $ mkdir gitdemo B. Initialize local warehouse $ git init C. Create... Under the project root directory .gitignore file ...

  5. VS Team explorer (VS Bring their own git) Instructions _ Use VS Bring their own git Push to the remote repository

    Use git Repositories are pretty good habits , Every time the code is finished, the code is pushed to the remote repository , In case the local code is discarded by accident , Or the hard drive is broken , Or a blackmail virus , If the local code is lost, it can be downloaded from the server . I was once hit by a blackmail virus , All on the local computer ...

  6. Git Study —— Push the files to the remote warehouse

    Local warehouse and GitHub Warehouse Association git remote add origin git@github.com:<github Account name >/<github Warehouse name of >.git Put the local library ...

  7. Git for Windows Push the local version library to the remote warehouse

    Git for Windows The basic environment construction and basic operation of Git Basic environment construction and basic operation . Generated a local git Version Library , This article will show you how to push this version library to a remote repository ( Code cloud ,github It's fine too ). 1. ...

  8. Git push Push the branch of the local version library to the corresponding branch on the remote server

    In the use of git commit Command to commit changes from scratch to the local repository , Only the last step is to push the branch of the local version library to the corresponding branch on the remote server , If you don't know the composition of the repository , You can see another one of my ,git The basic structure of the warehouse . g ...

  9. git Push local projects to remote warehouses

    One . Three basic configurations : Git Global settings git config --global user.name " title of account " git config --global user.email &quo ...

Random recommendation

  1. Java Basic knowledge points review knowledge points ( One ) Variable , Process control , Array

  2. Linux_rsyslogd The log service ( Two )

    One .rsyslogd Log unified format The basic log format consists of the following four columns : 1. Time of occurrence 2. Host name of the server where the event occurred 3. The name of the service or program that generated the event 4. Details of the incident Two ./etc/rsyslog.conf ...

  3. tableView The easy to forget technology used ( Relative to oneself )

    1. stay tableView Set the right navigation arrow cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator; 2.tableView My department ...

  4. poj 1273 Drainage Ditches Introduction to maximum flow

    Topic link :http://poj.org/problem?id=1273 Every time it rains on Farmer John's fields, a pond forms over B ...

  5. C Quick sort of language (qsort) Function usage

    I feel it's too slow to play fast , eureka c Functions that come with language . This function doesn't work c++ The convenient , But that's enough . The name of the function :qsort, In the header file :<stdlib.h> in Not much to say , Code up : #include <st ...

  6. Dynamics CRM No release JS debugging

    This blog has been migrated to    http://www.krely.cn/ Last project for more than a year , Mostly doing JS Development of , Due to the large number of developers , It's really a big hole . because JS After the modification is completed, it must be published , For our thousands of lines JS The tone of ...

  7. Twitter Data capture methods ( One )

    Scraping Tweets Directly from Twitters Search Page – Part 1 Published January 8, 2015 EDIT – Since I ...

  8. Heavy news -Service Fabric Official open source

    Microsoft Azure Service Fabric My official blog is 2017.3.24 I posted a blog on July Service Fabric .NET SDK goes open source , It introduces the most popular one in the community S ...

  9. HTML Introduction in CSS Four common methods and their respective shortcomings

    stay HTML Introduction in CSS There are four main ways to do it , They are in line . embedded . Linked and imported . 1. Inline Inline is marked style Property CSS style . It doesn't show CSS The advantages of , It is not recommended to use . The format is as follows : ...

  10. RAID It's not about Linux The realization of

    Reference material : RAID data striping spanned volume from raid0 To raid7,raid Introduction to all levels of the array The pictures used in this article are from the Internet , If there is infringement , Please contact , thank you . brief introduction RAI ...