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

隨筆 - 42  文章 - 3  trackbacks - 0
<2012年10月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網(wǎng)頁收藏

搜索

  •  

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

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 鷹擊長空 閱讀(472) 評(píng)論(0)  編輯 收藏 引用

只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航: 博客園   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>
            欧美成人福利视频| 亚洲综合国产精品| 久久免费黄色| 在线免费观看一区二区三区| 老司机aⅴ在线精品导航| 久久国产一二区| 亚洲国内在线| 亚洲日本成人网| 国产精品毛片| 久久久国际精品| 欧美99久久| 正在播放亚洲一区| 亚洲欧美一区二区精品久久久| 国产亚洲激情| 亚洲福利视频网站| 国产精品久久一级| 久久亚洲色图| 欧美激情第9页| 欧美在线高清| 欧美成人精品h版在线观看| 亚洲夜晚福利在线观看| 亚洲男同1069视频| 永久91嫩草亚洲精品人人| 最新精品在线| 国产目拍亚洲精品99久久精品 | 久久久久久久欧美精品| 亚洲久久视频| 午夜视频一区二区| 亚洲国产欧美精品| 亚洲视频在线观看一区| 国产一级久久| 亚洲裸体俱乐部裸体舞表演av| 国产美女扒开尿口久久久| 欧美大片va欧美在线播放| 国产精品啊啊啊| 欧美激情片在线观看| 国产精品专区一| 亚洲人成人99网站| 精品91在线| 亚洲午夜视频在线观看| 亚洲国产精品久久91精品| 亚洲无玛一区| 一区二区久久久久久| 另类av导航| 欧美制服丝袜第一页| 欧美日韩中文精品| 亚洲高清三级视频| 亚洲成色999久久网站| 亚洲综合三区| 亚洲免费视频观看| 欧美日韩国产va另类| 欧美成年网站| 狠狠色伊人亚洲综合成人| 亚洲欧美成aⅴ人在线观看| 一区二区三区精密机械公司 | 欧美激情第3页| 免费成人在线观看视频| 国产一区二区三区久久久久久久久 | 亚洲国产一区二区三区在线播| 亚洲欧美美女| 午夜免费久久久久| 国产精品人人做人人爽人人添| 亚洲第一精品电影| 亚洲福利在线观看| 久久综合色播五月| 嫩模写真一区二区三区三州| 国模精品一区二区三区| 亚欧成人在线| 久久青草福利网站| 国产一区二三区| 性xx色xx综合久久久xx| 久久国产精品99久久久久久老狼 | 久久精品五月婷婷| 久久人人爽人人爽爽久久| 国产揄拍国内精品对白| 欧美综合国产精品久久丁香| 久久久久一区二区三区| 好吊色欧美一区二区三区视频| 久久久久久久精| 欧美激情一区二区三区蜜桃视频| 最新日韩在线视频| 欧美色另类天堂2015| 亚洲欧美日韩综合| 另类成人小视频在线| 亚洲精品国产精品国自产观看浪潮| 欧美国产精品劲爆| 亚洲一卡久久| 久久夜色撩人精品| 99v久久综合狠狠综合久久| 欧美色图首页| 久久精品国产免费看久久精品| 欧美成人a视频| 亚洲性夜色噜噜噜7777| 国产一区999| 欧美激情视频一区二区三区在线播放| 日韩一级裸体免费视频| 亚洲中字黄色| 久久久久亚洲综合| 日韩午夜中文字幕| 国产精品自拍视频| 欧美成人免费小视频| 亚洲系列中文字幕| 欧美黄在线观看| 校园激情久久| 亚洲韩国一区二区三区| 国产精品xnxxcom| 玖玖玖国产精品| 亚洲综合日韩在线| 亚洲人体1000| 免费在线观看精品| 亚洲综合首页| 亚洲人永久免费| 国产亚洲欧美在线| 欧美午夜不卡视频| 欧美成人第一页| 久久精品国产欧美激情| 一区二区三区视频在线播放| 欧美国产日本在线| 久久精品一区二区国产| 亚洲伊人伊色伊影伊综合网| 亚洲国产精品成人精品| 国产亚洲欧美一区二区| 国产精品99一区二区| 欧美精品在线视频观看| 久久免费少妇高潮久久精品99| 亚洲一区二区三区精品动漫| 亚洲片区在线| 欧美国产先锋| 蜜臀a∨国产成人精品| 久久精品久久综合| 午夜精品福利视频| 亚洲欧美bt| 亚洲一区二区少妇| 亚洲麻豆av| 亚洲巨乳在线| 亚洲久久视频| 亚洲黄色尤物视频| 亚洲高清一区二| 黄色在线成人| 在线观看国产日韩| 樱花yy私人影院亚洲| 黑人巨大精品欧美一区二区| 国产日韩欧美黄色| 国产一区成人| 精品电影在线观看| 国语自产精品视频在线看抢先版结局 | 欧美激情一区二区三级高清视频| 久久精品视频在线观看| 欧美在线观看一区二区| 欧美一区二区免费| 久久精品视频网| 麻豆av福利av久久av| 毛片基地黄久久久久久天堂| 美女久久网站| 久久综合伊人77777| 蜜桃精品久久久久久久免费影院| 免费看亚洲片| 欧美精品v日韩精品v国产精品 | 欧美日韩mp4| 欧美色视频一区| 国产精品自拍视频| 国内精品视频久久| 亚洲黄色视屏| 一二三区精品福利视频| 亚洲综合精品| 久久视频在线视频| 亚洲国产欧美一区| 妖精视频成人观看www| 亚洲欧美成人网| 久久人91精品久久久久久不卡| 欧美xart系列高清| 欧美视频日韩视频| 国产亚洲一区在线| 99ri日韩精品视频| 欧美在线视频a| 亚洲风情亚aⅴ在线发布| 亚洲免费观看高清完整版在线观看熊| 亚洲香蕉成视频在线观看| 久久麻豆一区二区| 欧美日韩国产bt| 激情五月婷婷综合| 亚洲五月婷婷| 欧美~级网站不卡| 国产精品99久久99久久久二8 | 亚洲第一综合天堂另类专| 日韩午夜在线| 久久久久久久综合| 夜夜嗨av一区二区三区免费区| 欧美一区二区三区的| 欧美激情偷拍| 国内精品视频在线播放| 在线视频你懂得一区| 欧美电影打屁股sp| 亚洲欧美激情诱惑| 欧美日韩亚洲一区二区三区在线| 国产一区91| 校园春色国产精品| 一本综合久久| 欧美成人一区二区三区在线观看| 国产一区二区三区四区|