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

隨筆 - 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>
            久久精品最新地址| 亚洲精品永久免费精品| 午夜精品一区二区在线观看| 国产精品jizz在线观看美国| 亚洲自拍电影| 亚洲欧美国产高清| 国产精品亚洲一区二区三区在线| 午夜精品亚洲| 欧美制服第一页| 亚洲国产一区二区精品专区| 亚洲国产综合在线看不卡| 欧美成年人网站| 亚洲一区视频在线观看视频| 亚洲欧美国产高清| 一区视频在线| 亚洲精品午夜| 国产亚洲a∨片在线观看| 美女啪啪无遮挡免费久久网站| 免费试看一区| 欧美亚洲网站| 美女精品在线观看| 亚洲女同同性videoxma| 欧美亚洲免费电影| 亚洲精品社区| 亚洲欧美在线视频观看| 亚洲国产另类久久精品| av成人免费| 亚洲大胆女人| 亚洲综合视频网| 亚洲精品综合久久中文字幕| 亚洲性视频h| 亚洲欧洲在线视频| 亚洲欧美日韩精品久久久| 亚洲高清视频在线观看| 欧美性做爰毛片| 久久资源av| 亚洲一区二区三区四区五区午夜| 亚洲免费中文| 亚洲精选视频在线| 欧美在线观看一区| 亚洲一区二区动漫| 免费成人av在线| 久久精品免费电影| 欧美三级特黄| 亚洲欧洲久久| 在线日韩视频| 欧美中文字幕不卡| 亚洲女人小视频在线观看| 欧美国产亚洲精品久久久8v| 久久精品99国产精品| 欧美三级欧美一级| 最新国产の精品合集bt伙计| 伊人精品视频| 久久精品99国产精品| 亚洲欧美日韩专区| 欧美日韩在线一区二区三区| 欧美大片91| 亚洲高清av在线| 久久久.com| 老司机免费视频一区二区| 国产欧美精品在线观看| 亚洲一本视频| 午夜久久一区| 国产精品一区毛片| 亚洲视频一区在线观看| 亚洲一区黄色| 国产精品porn| 一本色道久久综合亚洲精品不卡| 艳妇臀荡乳欲伦亚洲一区| 欧美—级a级欧美特级ar全黄| 欧美激情国产日韩精品一区18| 激情视频一区二区| 久久久国产精品一区二区三区| 久久久www成人免费毛片麻豆| 国产欧美日韩一级| 性欧美videos另类喷潮| 久久乐国产精品| 在线不卡中文字幕| 蜜桃av噜噜一区| 亚洲欧洲一区二区在线播放| 亚洲精品中文字幕在线| 欧美激情在线播放| 亚洲最新在线| 久久国产精品99国产精| 国精产品99永久一区一区| 久久久99免费视频| 欧美成人亚洲| 亚洲一区二区三区在线观看视频 | 亚洲尤物影院| 国产精品制服诱惑| 欧美在线亚洲| 亚洲国产一区二区三区高清 | 国产精品亚洲视频| 久久九九99| 日韩午夜在线观看视频| 欧美在线视频导航| 亚洲日本va在线观看| 欧美日韩亚洲一区三区| 性欧美暴力猛交69hd| 欧美顶级艳妇交换群宴| 亚洲欧美激情一区二区| 精品99一区二区| 欧美日韩高清一区| 久久精品二区| 日韩亚洲欧美成人一区| 欧美中文在线观看| 亚洲毛片一区| 国产一区二区中文字幕免费看| 美女视频黄a大片欧美| 在线综合亚洲| 亚洲国产欧美日韩精品| 欧美亚洲视频一区二区| …久久精品99久久香蕉国产| 欧美色大人视频| 久久久久久久久久久久久久一区 | 亚洲人成网站在线观看播放| 亚洲欧美日本日韩| 91久久国产自产拍夜夜嗨| 国产精品久久久久77777| 老司机午夜精品| 亚洲永久精品大片| 亚洲茄子视频| 免费欧美电影| 久久激五月天综合精品| 亚洲色诱最新| 日韩一本二本av| 亚洲国产成人久久综合一区| 国产伦精品一区二区三区高清版| 欧美精品在线免费播放| 久久久久久欧美| 久久成人精品电影| 午夜在线成人av| 亚洲欧美精品伊人久久| 99精品福利视频| 91久久中文字幕| 最近中文字幕日韩精品 | 看欧美日韩国产| 欧美一区二区三区四区视频 | 在线成人免费观看| 国内激情久久| 激情文学一区| 精品成人在线观看| 国内精品视频一区| 激情五月综合色婷婷一区二区| 国产日本亚洲高清| 国产精品影院在线观看| 国产精品嫩草久久久久| 国产精品日日摸夜夜添夜夜av| 欧美午夜免费影院| 国产精品mv在线观看| 国产精品高潮呻吟| 国产欧美va欧美不卡在线| 国产伦理精品不卡| 国产一区在线播放| 在线观看欧美精品| 亚洲欧洲日产国码二区| 亚洲黄色免费| 亚洲午夜精品17c| 午夜久久tv| 久久久久久电影| 美国三级日本三级久久99| 美日韩精品免费| 亚洲国产福利在线| 亚洲美女视频在线免费观看| 99综合在线| 午夜视频在线观看一区二区| 久久久国产视频91| 欧美激情第一页xxx| 欧美无乱码久久久免费午夜一区 | 国产精品国产三级国产普通话蜜臀| 欧美日韩精品在线| 国产精品性做久久久久久| 亚洲伦理精品| 蜜臀av一级做a爰片久久 | 亚洲理论在线观看| 99精品99| 久久精品国产亚洲精品| 久久综合久久综合久久| 欧美日韩高清在线观看| 国产日韩精品一区二区三区| 狠狠爱www人成狠狠爱综合网| 亚洲欧洲在线播放| 欧美一区二区三区电影在线观看| 麻豆成人在线| 一区二区三区视频观看| 久久xxxx| 欧美日一区二区在线观看| 狠狠色综合网| 亚洲中无吗在线| 欧美成人精品一区二区| 亚洲在线成人| 欧美大片一区二区| 国产亚洲欧美激情| 一区二区冒白浆视频| 美女91精品| 亚洲欧美日本国产有色| 欧美成人免费小视频| 狠狠久久婷婷| 欧美有码在线观看视频| 亚洲韩国青草视频|