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

隨筆 - 42  文章 - 3  trackbacks - 0
<2012年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用鏈接

留言簿(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)  編輯 收藏 引用

只有注冊用戶登錄后才能發(fā)表評論。
網站導航: 博客園   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>
            激情欧美一区二区三区在线观看 | 国产伦精品一区二区三区免费| 久久精品色图| 欧美日产一区二区三区在线观看| 久久久蜜桃精品| 国产精品国产三级国产| 亚洲国产精品福利| 国产网站欧美日韩免费精品在线观看| 亚洲精品欧美激情| 亚洲激情小视频| 久久精品五月婷婷| 欧美专区在线| 国产精品人人做人人爽| 日韩视频在线观看一区二区| 亚洲黄色成人| 老鸭窝亚洲一区二区三区| 久久久久久久波多野高潮日日| 欧美午夜精品久久久久久久| 亚洲精品久久久蜜桃| 亚洲人成网站777色婷婷| 开心色5月久久精品| 老司机免费视频久久| 国产一区激情| 欧美中文字幕在线播放| 久久精品av麻豆的观看方式| 国产精品综合| 先锋影音一区二区三区| 久久爱www| 国产日韩欧美在线看| 午夜国产欧美理论在线播放 | 久久精品卡一| 国产一区99| 欧美中文日韩| 久久亚洲精品伦理| 在线免费观看日韩欧美| 久久免费黄色| 亚洲激情偷拍| 亚洲视频图片小说| 国产精品捆绑调教| 亚洲欧美日韩一区在线| 久久精品91| 亚洲成色777777女色窝| 欧美激情免费观看| 夜夜狂射影院欧美极品| 销魂美女一区二区三区视频在线| 国产精品综合不卡av| 久久不射中文字幕| 亚洲第一中文字幕| 亚洲在线黄色| 国产亚洲人成a一在线v站| 久久久蜜桃精品| 亚洲精品自在在线观看| 欧美在线视频一区| 一色屋精品视频在线观看网站| 欧美大片免费看| 国产精品99久久久久久久久| 久久免费国产精品| 亚洲精品影院| 国产欧美丝祙| 欧美成在线观看| 亚洲综合视频网| 欧美v国产在线一区二区三区| 99国产一区| 国内伊人久久久久久网站视频 | 国产精品久久二区二区| 欧美在线免费观看亚洲| 亚洲七七久久综合桃花剧情介绍| 亚洲欧美日韩中文在线制服| 伊人久久亚洲热| 国产精品a久久久久久| 久久久噜噜噜久久中文字幕色伊伊| 亚洲日本无吗高清不卡| 久久久久久9| 亚洲在线国产日韩欧美| 亚洲高清在线观看一区| 国产精品视频你懂的| 免费亚洲一区| 欧美与欧洲交xxxx免费观看| 亚洲精品中文字| 欧美成人综合在线| 久久国产一区二区三区| 亚洲天堂av在线免费| 亚洲大片精品永久免费| 国产日韩成人精品| 欧美视频在线免费看| 女同一区二区| 久久久噜久噜久久综合| 午夜精品久久久99热福利| 亚洲精品日本| 亚洲盗摄视频| 美女免费视频一区| 久久精品综合网| 香蕉久久夜色| 亚洲自拍偷拍一区| 亚洲一本视频| 夜夜精品视频一区二区| 亚洲国产欧美日韩| 激情综合色综合久久| 国产性天天综合网| 国产精品一级| 国产精品视频久久久| 国产精品久久国产三级国电话系列| 欧美国产综合| 欧美精品97| 欧美精品久久久久久久久老牛影院 | 另类av一区二区| 久久夜精品va视频免费观看| 久久久久久噜噜噜久久久精品| 午夜精品久久99蜜桃的功能介绍| 亚洲午夜激情网页| 亚洲视频在线二区| 亚洲男人的天堂在线aⅴ视频| 亚洲小说区图片区| 亚洲一区二区三区四区中文| 亚洲视频第一页| 亚洲男人av电影| 香蕉尹人综合在线观看| 久久精品国产欧美亚洲人人爽| 欧美影视一区| 久久综合网色—综合色88| 欧美波霸影院| 亚洲人屁股眼子交8| 99精品福利视频| 亚洲自拍偷拍色片视频| 亚洲综合社区| 久久精品亚洲精品| 欧美福利在线| 国产精品高清在线观看| 国产网站欧美日韩免费精品在线观看 | 免费成人av在线看| 亚洲电影免费在线| 一区二区日韩伦理片| 午夜精品成人在线| 久久躁狠狠躁夜夜爽| 欧美激情久久久| 国产精品美女久久| 激情小说另类小说亚洲欧美| 亚洲精品免费网站| 欧美一进一出视频| 蜜月aⅴ免费一区二区三区| 亚洲激情视频网站| 亚洲欧美综合国产精品一区| 久久综合色8888| 国产精品久久网站| 亚洲福利视频网| 亚洲尤物视频在线| 欧美成人免费网| 亚洲一级一区| 女人香蕉久久**毛片精品| 国产精品久久久久久久久久久久久久 | 久久成人人人人精品欧| 欧美成人免费全部观看天天性色| 欧美视频在线观看 亚洲欧| 国产在线视频欧美| 一区二区三区免费看| 久久久久一区二区| 日韩亚洲不卡在线| 久久全国免费视频| 国产女人精品视频| 99精品欧美一区二区三区| 久久久久这里只有精品| 99在线精品视频在线观看| 久久久久久久一区| 国产欧美一区二区精品性| 日韩视频在线永久播放| 久久久欧美精品sm网站| 亚洲午夜av电影| 欧美日韩国产免费| 在线观看成人小视频| 欧美主播一区二区三区美女 久久精品人 | 99日韩精品| 欧美激情成人在线| 久久都是精品| 国产乱码精品一区二区三区忘忧草| 日韩亚洲一区二区| 欧美成人中文字幕在线| 久久99在线观看| 国产伦精品一区二区三区四区免费| 一区二区av在线| 亚洲欧洲在线视频| 麻豆精品在线观看| 亚洲大片一区二区三区| 美日韩精品免费观看视频| 欧美一区二区性| 国产人妖伪娘一区91| 午夜精品福利在线| 亚洲一级黄色片| 国产精品视频999| 欧美亚洲一区在线| 亚洲一区二区在| 国产精品美腿一区在线看| 亚洲一区二区三区三| 一区二区电影免费观看| 欧美日韩免费观看一区| 在线视频免费在线观看一区二区| 欧美激情久久久| 欧美片网站免费| 一本一本久久| 中文在线不卡视频| 国产精品丝袜xxxxxxx|