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

隨筆 - 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>
            久久国产精品网站| 久久精品欧美| 99国产一区二区三精品乱码| 欧美激情精品久久久久久免费印度 | 亚洲欧美日韩一区在线| 在线亚洲精品| 国产精品一区久久久| 久久激情视频久久| 久久久久一区二区三区| 亚洲黄色三级| 99视频热这里只有精品免费| 国产精品免费aⅴ片在线观看| 欧美怡红院视频| 久久久青草青青国产亚洲免观| 在线免费观看日韩欧美| 亚洲精品久久7777| 国产精品美女久久久久aⅴ国产馆| 欧美一区二区三区在线视频 | 亚洲一区二区视频在线| 国产一区二区三区久久精品| 亚洲第一页在线| 国产精品r级在线| 久久久久久噜噜噜久久久精品 | 午夜天堂精品久久久久| 在线观看国产一区二区| 99re66热这里只有精品4| 国产亚洲精品久久久| 亚洲高清视频在线观看| 国产精品一二| 亚洲国产婷婷香蕉久久久久久99 | 国产精品专区h在线观看| 蜜桃久久精品乱码一区二区| 欧美日韩极品在线观看一区| 久久久久久精| 欧美日韩一区在线视频| 美女日韩欧美| 国产精品美女久久久| 欧美激情在线有限公司| 国产日韩av一区二区| 亚洲精品免费一区二区三区| 激情久久久久久久| 亚洲一区久久久| 一区二区三区日韩在线观看| 久久久久久一区| 欧美一区二区视频在线| 欧美日韩一区二区视频在线| 欧美成人一区二区在线| 国产综合一区二区| 亚洲一区国产一区| 亚洲一级黄色片| 欧美日本一区二区视频在线观看| 久久亚洲免费| 国产一区二区三区在线观看免费| 亚洲免费成人av| 99综合电影在线视频| 你懂的一区二区| 欧美成人首页| 亚洲激情欧美激情| 美女国产一区| 欧美大胆成人| 亚洲国产经典视频| 久久久久久久综合色一本| 久久精品夜色噜噜亚洲aⅴ| 国产精品久久夜| 亚洲自拍啪啪| 欧美怡红院视频| 国产一区在线视频| 久久久久**毛片大全| 老色批av在线精品| 1024亚洲| 欧美国产视频在线| 99re这里只有精品6| 亚洲午夜在线观看| 国产精品综合| 久久都是精品| 欧美大片专区| 日韩亚洲在线观看| 欧美日韩综合视频网址| 亚洲午夜在线| 久久久人成影片一区二区三区| 国内精品久久久久影院色| 久久久久久97三级| 亚洲国产成人av| 亚洲特色特黄| 国产欧美日韩精品在线| 久久久久久尹人网香蕉| 亚洲国产视频一区二区| 亚洲一区二区三区四区视频| 国产欧美欧美| 美女视频网站黄色亚洲| 亚洲欧洲一区二区天堂久久| 亚洲欧美国产精品桃花| 国产又爽又黄的激情精品视频| 美女主播一区| 99精品久久久| 老司机成人网| 亚洲午夜激情网站| 一区二区视频免费完整版观看| 免费观看日韩av| 在线一区二区三区四区| 久久夜色撩人精品| 一区二区三区日韩精品| 激情小说另类小说亚洲欧美| 欧美日韩的一区二区| 欧美一区二区三区在线观看视频| 亚洲第一福利社区| 欧美在线视频播放| 日韩午夜av| 激情成人综合网| 国产精品国色综合久久| 免费欧美电影| 久久激五月天综合精品| 宅男噜噜噜66国产日韩在线观看| 模特精品在线| 久久激五月天综合精品| 在线亚洲一区观看| 亚洲国产福利在线| 国产一区二区三区高清在线观看| 欧美乱妇高清无乱码| 久久亚洲午夜电影| 欧美亚洲视频在线观看| 999在线观看精品免费不卡网站| 免费视频一区二区三区在线观看| 性xx色xx综合久久久xx| 一个色综合av| 亚洲精选视频在线| 亚洲国产精品久久人人爱蜜臀| 国产精品亚洲美女av网站| 欧美日本在线看| 欧美电影免费观看| 美女网站在线免费欧美精品| 欧美在线一二三四区| 亚洲欧美一区二区三区极速播放| 999亚洲国产精| 日韩香蕉视频| 亚洲欧洲日本mm| 亚洲国产三级网| 亚洲国产裸拍裸体视频在线观看乱了| 久久久久久高潮国产精品视| 久久精品国产99国产精品| 性欧美在线看片a免费观看| 亚洲免费中文| 香蕉视频成人在线观看| 午夜精品福利一区二区蜜股av| 亚洲天堂第二页| 亚洲免费小视频| 性做久久久久久久免费看| 欧美一级成年大片在线观看| 亚洲欧美一区二区三区久久 | 夜夜嗨av一区二区三区网页 | 国产一区二区三区四区| 韩国精品主播一区二区在线观看| 国产日产欧产精品推荐色| 国产网站欧美日韩免费精品在线观看 | 国产精品v一区二区三区| 欧美日韩一视频区二区| 欧美性开放视频| 国产乱码精品一区二区三区忘忧草| 国产精品视频xxxx| 国产一区二区黄色| 一区视频在线| 99国内精品久久| 亚洲欧美日韩精品久久亚洲区| 久久99在线观看| 免费成人黄色片| 亚洲精品午夜| 亚洲欧美不卡| 老妇喷水一区二区三区| 欧美片在线观看| 国产精品专区第二| 亚洲国产国产亚洲一二三| 99国产欧美久久久精品| 欧美一区二区三区视频在线| 久久亚洲捆绑美女| 亚洲伦理在线| 久久国产天堂福利天堂| 欧美国产日韩一区二区在线观看| 国产精品成人一区二区三区夜夜夜| 国产情侣久久| 99在线|亚洲一区二区| 久久成人国产| 亚洲国产婷婷| 欧美主播一区二区三区美女 久久精品人 | 久久人人97超碰精品888| 亚洲黑丝一区二区| 欧美一区二区大片| 欧美美女bbbb| 一区在线播放| 欧美一区二区三区播放老司机| 欧美激情一二区| 欧美在线免费视屏| 国产精品成人观看视频免费 | 国产亚洲精品成人av久久ww| 亚洲激情av| 久久久久久亚洲精品杨幂换脸| 亚洲精品一品区二品区三品区| 欧美一区二区三区免费视| 欧美日韩精品一区二区在线播放| 狠狠色噜噜狠狠狠狠色吗综合| 亚洲资源在线观看|