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

隨筆 - 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>
            欧美亚洲免费在线| 欧美日韩一区二区在线播放| 欧美亚洲第一页| 久久婷婷国产综合尤物精品| 欧美韩国日本综合| 久久久久久夜| 国产精品久久中文| 亚洲精品社区| 狠狠色狠狠色综合系列| 一本色道久久加勒比88综合| 亚洲观看高清完整版在线观看| 午夜精品久久久久影视| 亚洲综合日韩中文字幕v在线| 欧美高清视频一区二区| 中日韩在线视频| 亚洲一区二区免费在线| 欧美日韩播放| 亚洲精品一区二区三区福利| 亚洲欧美日韩一区二区在线 | 六月丁香综合| 久久久一区二区| 亚洲精品乱码久久久久久黑人 | 欧美亚韩一区| 久久亚洲影院| 欧美高清视频一区二区| 在线欧美影院| 另类天堂视频在线观看| 欧美黑人一区二区三区| 亚洲人成在线观看网站高清| 久久天天躁夜夜躁狠狠躁2022| 亚洲精品中文字幕有码专区| 久久理论片午夜琪琪电影网| 亚洲色诱最新| 国产精品午夜电影| 欧美一区中文字幕| 欧美在线亚洲一区| 国产一区二区三区四区老人 | 亚洲免费黄色| 性欧美xxxx大乳国产app| 亚洲日本欧美在线| 黄色亚洲精品| 国产精品欧美一区喷水| 欧美国产日韩一区二区三区| 久久久精品2019中文字幕神马| 免费在线亚洲欧美| 亚洲人被黑人高潮完整版| 国产亚洲成av人在线观看导航| 欧美淫片网站| 亚洲欧美日韩视频二区| 这里只有视频精品| 最新69国产成人精品视频免费| 久久午夜av| 香蕉久久一区二区不卡无毒影院| 美女久久一区| 亚洲视频在线观看| 亚洲精品一区二区三区av| 亚洲成人在线网| 精品动漫3d一区二区三区| 欧美激情一区二区三区在线视频| 亚洲视频在线观看网站| 久久三级视频| 久久精品论坛| 日韩小视频在线观看专区| 欧美日韩午夜在线| 欧美精品日日鲁夜夜添| 欧美福利电影网| 欧美超级免费视 在线| 亚洲永久免费av| 免费观看久久久4p| 欧美v日韩v国产v| 欧美福利视频一区| 欧美激情成人在线视频| 亚洲电影一级黄| 亚洲在线视频一区| 午夜精品久久久久久久久久久| 亚洲第一综合天堂另类专| 在线观看av不卡| 国产精品福利久久久| 久久久人成影片一区二区三区观看 | 亚洲性感美女99在线| 亚洲视频综合| 性欧美精品高清| 久久久精品国产免费观看同学 | 99精品视频免费| 国产精品99久久99久久久二8| 在线性视频日韩欧美| 在线高清一区| 亚洲国产小视频| 黄网站免费久久| 亚洲国产精品女人久久久| 亚洲日本理论电影| 亚洲综合社区| 久久男女视频| 91久久香蕉国产日韩欧美9色| 日韩视频一区二区三区在线播放免费观看| 一本一本久久a久久精品综合妖精| 亚洲一区三区电影在线观看| 欧美在线观看视频一区二区| 久久综合色影院| 欧美性片在线观看| 国产日韩一级二级三级| 在线欧美一区| 亚洲一区二区网站| 久久视频这里只有精品| 亚洲欧洲精品成人久久奇米网 | 日韩一级视频免费观看在线| 亚洲嫩草精品久久| 亚洲一区二区成人| 久久久xxx| 欧美日韩国内自拍| 国产综合亚洲精品一区二| 国产深夜精品| 亚洲人成在线观看一区二区| 午夜视频一区| 亚洲国产精品成人一区二区| 狼人天天伊人久久| 久久阴道视频| 日韩视频不卡中文| 久久久99免费视频| 欧美性猛交xxxx免费看久久久 | 久久国产88| 久久www免费人成看片高清 | 欧美极品一区| 韩国成人精品a∨在线观看| 99在线精品观看| 亚洲视频在线观看一区| 久久亚洲私人国产精品va媚药| 亚洲美女黄网| 麻豆精品视频在线| 国产手机视频一区二区| 正在播放日韩| 欧美成人首页| 欧美一区二区精品| 久久五月天婷婷| 国产视频一区三区| 亚洲私拍自拍| 亚洲国产欧美在线人成| 久久精品官网| 国产精品手机视频| 亚洲视频一二三| 亚洲高清三级视频| 久久精品国产欧美亚洲人人爽| 欧美体内she精视频| 国产伦精品一区二区三区视频孕妇| 国产精品日日摸夜夜添夜夜av | 亚洲精品国产精品国自产观看| 久久久激情视频| 亚洲影院色无极综合| 欧美精品一区二区三区蜜桃 | 欧美激情第六页| 一区二区在线看| 久久久精品国产免大香伊| 亚洲午夜精品在线| 欧美午夜精品伦理| 这里只有精品丝袜| 亚洲免费大片| 欧美日韩国产一级| 一区二区不卡在线视频 午夜欧美不卡在| 欧美xart系列高清| 久久久www成人免费毛片麻豆| 国产午夜亚洲精品羞羞网站| 欧美与欧洲交xxxx免费观看 | 欧美1区3d| 国产精品免费电影| 亚洲性线免费观看视频成熟| 亚洲毛片av在线| 欧美日韩精品二区| 亚洲手机在线| 亚洲视频在线观看三级| 国产精品你懂的在线| 欧美一区二区三区久久精品茉莉花| 亚洲视频精品| 国产日韩精品视频一区| 99re8这里有精品热视频免费| 免费在线播放第一区高清av| 久久中文久久字幕| 亚洲激情视频在线播放| 亚洲电影免费| 欧美理论电影网| 亚洲一区一卡| 性色av一区二区三区| 国产伊人精品| 欧美韩日一区二区三区| 欧美裸体一区二区三区| 亚洲小说春色综合另类电影| 亚洲永久精品国产| 精品成人国产在线观看男人呻吟| 男女视频一区二区| 欧美精品亚洲二区| 亚洲图中文字幕| 欧美一区影院| 亚洲精品自在久久| 欧美a级理论片| 欧美国产91| 亚洲在线成人| 欧美在线影院在线视频| 亚洲青色在线| 亚洲一级二级在线| 樱花yy私人影院亚洲| 亚洲精品一区二区三区四区高清 |