青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 42  文章 - 3  trackbacks - 0
<2011年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網頁收藏

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

Create a new local repository:
prompt> mkdir /path/to/repo:
prompt> cd /path/to/repo
prompt> git init
Initialized empty Git repository in /path/to/repo/.git/
prompt>
... create file(s) for first commit ...
prompt> git add .
prompt> git commit -m 'initial import'
Created initial commit bdebe5c: initial import.

1 files changed, 1 insertions(+), 0 deletions(-)
Note that the commit action only commits to your local repository.

Change one of my github repo name in two steps:

Firstly, cd to your local git directory, and find out what remote name(s) refer to that URL

$ git remote -v origin  git@github.com:someuser/someproject.git 

Then, set the new URL

$ git remote set-url origin git@github.com:someuser/newprojectname.git 

or in older versions of git, you might need

$ git remote rm origin $ git remote add origin git@github.com:someuser/newprojectname.git 

(origin is the most common remote name, but it might be called something else.)

But if there's lots of people who are working on your project, they will all need to do the above steps, and maybe you don't even know how to contact them all to tell them. That's what #1 is about.

Further reading:

Footnotes:

1 The exact format of your URL depends on which protocol you are using, e.g.

push your local repository into remote repository:
prompt>git push origin master
To amend the last wrong commit:

git commit --amend -m "New commit message"

 

If the commit you want to fix isn’t the most recent one:

  1. git rebase --interactive $parent_of_flawed_commit

    If you want to fix several flawed commits, pass the parent of the oldest one of them.

  2. An editor will come up, with a list of all commits since the one you gave.

    1. Change pick to reword (or on old versions of Git, to edit) in front of any commits you want to fix.
    2. Once you save, git will replay the listed commits. 

  3. Git will drop back you into your editor for every commit you said you want to reword, and into the shell for every commit you wanted to edit. If you’re in the shell:

    1. Change the commit in any way you like.
    2. git commit --amend
    3. git rebase --continue

Most of this sequence will be explained to you by the output of the various commands as you go. It’s very easy, you don’t need to memorise it – just remember that git rebase --interactive lets you correct commits no matter how long ago they were.

Today, when I try to push some code to the remote, it told me the there is a permission issue, I finally fixed it by created a new key, add it to my git account and local account. Here is the process of adding to local


$ git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: No more authentication methods to try.
Permission denied (publickey).

$  ssh-add -l
Could not open a connection to your authentication agent.

$ eval `ssh-agent`
Agent pid 4968

If you did not have a key, generate one according this 
https://help.github.com/articles/generating-ssh-keys

then add the key
$  ssh-add /c/Users/li/.ssh/key
Identity added: /c/Users/li/.ssh/key

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /c/Users/li/.ssh/identity type -1

Hi ***! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1


$ git push -u origin master
Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (46/46), 21.33 KiB, done.
Total 46 (delta 1), reused 0 (delta 0)

Clone your repository

Create a new repository in a new directory via the following commands.

 

# Switch to home
cd ~
# Make new directory
mkdir repo02

# Switch to new directory
cd ~/repo02
# Clone
git clone ../remote-repository.git . 

 

posted on 2012-07-09 22:04 鷹擊長空 閱讀(473) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久综合给合久久狠狠狠97色69| 欧美成人免费小视频| 夜夜嗨av一区二区三区| 欧美高清视频| 中日韩视频在线观看| 在线亚洲成人| 激情另类综合| 亚洲国产精品va| 欧美日韩中文字幕在线| 欧美一区二区三区四区在线观看地址| 亚洲在线国产日韩欧美| 狠狠色丁香久久综合频道| 欧美a级片网| 欧美日韩一区二区免费在线观看 | 免费中文日韩| 99国产精品视频免费观看| 国产精品99久久99久久久二8 | 亚洲欧美日韩一区在线观看| 亚洲伊人观看| 最新成人av在线| 亚洲特黄一级片| 亚洲国产精品一区| 亚洲性夜色噜噜噜7777| 尤物网精品视频| aaa亚洲精品一二三区| 国内精品视频在线播放| 亚洲精品资源美女情侣酒店| 国产精品亚洲片夜色在线| 欧美成人首页| 国产日产亚洲精品| 亚洲成色www8888| 国产日韩精品一区二区三区| 亚洲电影欧美电影有声小说| 国产精品一区二区在线| 亚洲第一级黄色片| 国内在线观看一区二区三区| 日韩亚洲欧美在线观看| 亚洲国产成人一区| 亚洲欧美国产视频| 亚洲私拍自拍| 欧美理论电影网| 欧美成人中文字幕| 狠狠88综合久久久久综合网| 中日韩美女免费视频网站在线观看| 激情偷拍久久| 亚洲欧美激情四射在线日| 日韩一二三在线视频播| 久久一区激情| 久久婷婷丁香| 国产视频一区三区| 亚洲专区国产精品| 亚洲一区二区三区激情| 欧美伦理91i| 亚洲福利在线观看| 亚洲激情偷拍| 乱中年女人伦av一区二区| 久久久久久久综合| 国产亚洲欧美一级| 亚洲欧美综合精品久久成人| 亚洲欧美成人网| 国产精品豆花视频| 夜久久久久久| 午夜国产欧美理论在线播放| 欧美日韩在线不卡一区| aa国产精品| 亚洲在线视频一区| 国产精品国产精品| 亚洲天堂成人在线视频| 性色av一区二区三区在线观看 | 免费影视亚洲| 欧美国产日韩一区二区在线观看| 激情文学综合丁香| 鲁鲁狠狠狠7777一区二区| 欧美a级理论片| 亚洲人成在线影院| 欧美另类久久久品| 亚洲一区二区免费在线| 久久精品亚洲| 在线看片成人| 欧美伦理视频网站| 亚洲一区二区三区精品在线观看| 亚洲综合第一页| 国产一区二区欧美| 久久综合久久综合这里只有精品| 欧美成人精品高清在线播放| 亚洲精品一区在线观看| 欧美日韩在线观看一区二区| 亚洲欧美清纯在线制服| 老色鬼精品视频在线观看播放| 亚洲国产精品视频| 欧美亚洲第一页| 久久国产一区| 99riav久久精品riav| 欧美一区视频在线| 亚洲人成啪啪网站| 国产精品久久久久av| 久久久一区二区三区| 99精品国产99久久久久久福利| 欧美在线视频免费播放| 亚洲人成毛片在线播放女女| 国产精品电影在线观看| 久久亚洲春色中文字幕久久久| 亚洲免费电影在线观看| 久久亚洲国产成人| 亚洲图片在线| 亚洲国产精品黑人久久久| 国产精品久久久久久久久久尿| 久久久999精品视频| 夜夜嗨av一区二区三区网页| 久久先锋影音| 性欧美暴力猛交69hd| 亚洲伦理网站| 精品粉嫩aⅴ一区二区三区四区| 欧美日韩四区| 久久一区二区三区超碰国产精品| 一区二区三区波多野结衣在线观看| 久久一二三国产| 午夜一区二区三区在线观看| 亚洲免费成人av电影| 精品va天堂亚洲国产| 国产精品视频免费观看www| 欧美成人一品| 久久在线免费观看| 久久精品免视看| 亚洲一级在线观看| 一区二区三区免费看| 91久久午夜| 欧美激情国产精品| 美女91精品| 久色成人在线| 久久在线视频| 久久综合久久88| 久久福利一区| 久久高清福利视频| 午夜宅男欧美| 欧美一区二区三区久久精品茉莉花| 一本色道久久88精品综合| 亚洲精品国精品久久99热一| 亚洲福利国产| 亚洲国产欧美在线人成| 亚洲福利在线视频| 亚洲高清在线观看| 亚洲黄色免费电影| 亚洲九九精品| 国产精品99久久久久久人| 一级成人国产| 亚洲免费视频网站| 亚洲欧美视频在线| 欧美亚洲网站| 久久九九全国免费精品观看| 久久九九99视频| 欧美成人午夜免费视在线看片| 久久亚洲一区二区三区四区| 毛片一区二区三区| 欧美搞黄网站| 亚洲毛片网站| 亚洲欧美精品| 久久久伊人欧美| 欧美激情视频一区二区三区不卡| 欧美精品一区二区三区很污很色的 | 亚洲国产第一| 一本色道久久88综合日韩精品| 在线亚洲自拍| 久久久精品久久久久| 免费一级欧美在线大片| 欧美日韩在线看| 国产一区二区三区在线观看视频 | 最新中文字幕亚洲| 亚洲视频在线二区| 欧美在线视频免费播放| 男女激情久久| 国产精品试看| 在线日韩av片| 亚洲天堂av图片| 久久美女艺术照精彩视频福利播放| 美女爽到呻吟久久久久| 亚洲精品午夜| 欧美在线观看视频| 欧美日韩国产系列| 国产亚洲精品一区二555| 亚洲另类春色国产| 久久精品毛片| 亚洲欧洲精品一区二区精品久久久 | 在线中文字幕一区| 久久青草久久| 亚洲视频中文字幕| 免费成人在线观看视频| 国产精品久久久久影院色老大| 在线观看日韩一区| 午夜精品999| 亚洲精品小视频| 久久天堂精品| 国产一区二区三区四区五区美女| 日韩小视频在线观看| 美女视频黄a大片欧美| 亚洲资源av| 欧美日韩在线播放三区| 亚洲第一黄色| 久久天天躁夜夜躁狠狠躁2022 | 老司机凹凸av亚洲导航|