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

隨筆 - 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>
            日韩视频一区二区三区| 国产综合视频| 一区二区三区.www| 亚洲免费观看| 国产精品福利影院| 久久久久久久久久久久久女国产乱 | 欧美日本精品| 亚洲网站啪啪| 亚洲欧美日韩在线观看a三区| 国产麻豆精品视频| 美女精品网站| 欧美日韩午夜| 久久国产精品高清| 欧美h视频在线| 亚洲一区综合| 久久精品人人爽| 一本色道久久综合亚洲二区三区| 一本色道久久综合一区 | 久久婷婷国产综合精品青草| 最新国产成人av网站网址麻豆 | 欧美激情一区二区三区在线 | 一区二区三区欧美在线| 国产视频欧美| 亚洲人成人一区二区三区| 国产精品高精视频免费| 另类av导航| 国产精品高清免费在线观看| 麻豆精品一区二区av白丝在线| 欧美日本不卡视频| 久久视频这里只有精品| 欧美午夜激情在线| 欧美国产日韩一二三区| 国产精品乱码一区二区三区| 欧美h视频在线| 国产精品一级| 日韩视频在线播放| 亚洲国产成人tv| 亚洲欧美美女| 在线午夜精品自拍| 鲁鲁狠狠狠7777一区二区| 校园春色综合网| 欧美日韩一区二区在线| 欧美激情免费在线| 狠狠爱www人成狠狠爱综合网| 日韩亚洲视频| 亚洲伦伦在线| 欧美+亚洲+精品+三区| 久久久国产91| 国产日韩欧美不卡| 这里是久久伊人| 中国成人亚色综合网站| 欧美α欧美αv大片| 开元免费观看欧美电视剧网站| 国产精品久久婷婷六月丁香| 亚洲肉体裸体xxxx137| 亚洲国产精品日韩| 久久久久国产精品一区二区| 久久国产精品久久久久久久久久| 欧美性猛交xxxx乱大交退制版| 亚洲肉体裸体xxxx137| 亚洲精品日本| 欧美电影免费观看| 91久久精品日日躁夜夜躁欧美 | 日韩一级不卡| 欧美激情国产日韩| 亚洲国产1区| 亚洲精品日韩激情在线电影| 欧美电影免费观看大全| 亚洲激情视频网| 一区电影在线观看| 欧美日韩在线播放一区二区| 9色精品在线| 午夜电影亚洲| 国产精品午夜视频| 欧美在线日韩| 欧美岛国激情| 一区二区三区精品国产| 国产精品夫妻自拍| 欧美一区二区三区四区在线观看| 久久精品女人的天堂av| 尤物精品国产第一福利三区| 欧美wwwwww| 亚洲亚洲精品三区日韩精品在线视频 | 久久九九国产| 亚洲大胆人体视频| 在线一区二区三区做爰视频网站| 欧美午夜剧场| 久久激情网站| 亚洲精品1区| 午夜免费在线观看精品视频| 国产一区二区中文| 欧美xx视频| 亚洲你懂的在线视频| 免费成人激情视频| 夜夜嗨av一区二区三区四季av| 国产精品红桃| 另类春色校园亚洲| 在线视频你懂得一区| 看欧美日韩国产| 中文av字幕一区| 激情国产一区二区| 欧美日韩免费在线| 久久亚洲综合色一区二区三区| 亚洲国产天堂久久综合网| 午夜精品视频一区| 亚洲精品老司机| 国产午夜精品一区理论片飘花| 欧美国产高清| 欧美在线视屏| 亚洲深夜影院| 欧美国产高清| 久久久999精品视频| 亚洲视频在线观看| 亚洲成色777777女色窝| 国产女同一区二区| 欧美人在线观看| 久久亚洲欧美国产精品乐播| 亚洲午夜在线| 日韩亚洲欧美中文三级| 欧美高清一区| 麻豆成人在线观看| 欧美在线国产精品| 亚洲欧美国产高清| 一区二区三区国产| 亚洲精品视频免费| 亚洲电影观看| 影音先锋另类| 国产一区二区三区电影在线观看| 国产精品国产三级国产aⅴ浪潮| 欧美国产综合视频| 老牛嫩草一区二区三区日本| 欧美伊人久久久久久久久影院| 一区二区欧美亚洲| 亚洲毛片视频| 亚洲肉体裸体xxxx137| 亚洲国产精品va在线看黑人| 欧美成人精品在线| 毛片精品免费在线观看| 久久综合网色—综合色88| 久久久久久久网| 久久久久久久成人| 另类天堂视频在线观看| 久久性天堂网| 蜜乳av另类精品一区二区| 久久男女视频| 女主播福利一区| 欧美高清视频一区| 亚洲欧洲在线一区| 亚洲伦理一区| 亚洲自拍偷拍福利| 欧美一区二区三区婷婷月色| 午夜精品一区二区三区在线| 欧美一区二区在线免费观看| 欧美怡红院视频| 久久嫩草精品久久久精品| 久久中文字幕一区| 欧美另类videos死尸| 欧美视频二区| 国产乱码精品1区2区3区| 国产一区视频网站| 亚洲国产视频a| 亚洲乱码国产乱码精品精| 一区二区三区产品免费精品久久75| 亚洲图片你懂的| 久久久精品网| 亚洲电影在线免费观看| 正在播放欧美一区| 欧美尤物巨大精品爽| 老司机午夜精品视频在线观看| 欧美精品少妇一区二区三区| 国产精品免费一区豆花| 伊人精品在线| 中文一区在线| 老司机精品久久| 亚洲看片免费| 久久国产成人| 欧美日韩久久精品| 国产一区二区三区免费不卡 | 一区二区在线免费观看| 亚洲精品久久视频| 欧美在线视频在线播放完整版免费观看| 久久亚洲精品一区二区| 亚洲美女啪啪| 久久精品国产清自在天天线| 欧美日产一区二区三区在线观看| 国产日韩综合| 中文在线不卡| 欧美成人免费在线观看| 亚洲女女做受ⅹxx高潮| 欧美国产日韩一区二区在线观看| 国产乱肥老妇国产一区二| 日韩视频二区| 噜噜爱69成人精品| 亚洲欧美日韩成人| 欧美绝品在线观看成人午夜影视 | 久久视频在线视频| 国产日韩欧美精品在线| 亚洲午夜在线视频| 亚洲二区在线| 久久理论片午夜琪琪电影网|