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

隨筆 - 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 鷹擊長空 閱讀(466) 評論(0)  編輯 收藏 引用
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            国产精品福利在线观看网址| 久久精品欧美| 国产精品观看| 国产精品家教| 国产精品青草久久| 欧美日本一道本| 国产精品成人一区二区三区夜夜夜 | 久久激情视频| 欧美一区二区三区在线观看视频| 一本色道久久综合亚洲精品小说 | 欧美大片在线观看| 麻豆av福利av久久av| 久久久亚洲精品一区二区三区| 免费看av成人| 一本色道**综合亚洲精品蜜桃冫 | 亚洲视屏在线播放| 午夜一区不卡| 欧美成人中文| 国产精品自在欧美一区| 伊人男人综合视频网| 亚洲美女视频在线免费观看| 午夜亚洲激情| 欧美护士18xxxxhd| 亚洲欧美国产精品桃花| 免费在线亚洲欧美| 国产欧美日韩视频一区二区| 亚洲第一精品夜夜躁人人爽| 在线视频日韩精品| 美脚丝袜一区二区三区在线观看 | 性欧美超级视频| 欧美成人精品1314www| 亚洲一区二区三区色| 欧美1区2区| 国内在线观看一区二区三区| 亚洲一区二区三区高清| 美女黄网久久| 亚洲欧美一区二区精品久久久| 欧美好吊妞视频| **欧美日韩vr在线| 久久久精品五月天| 亚洲一区二区三区四区五区午夜| 欧美激情一区二区三级高清视频| 韩国一区二区三区美女美女秀| 亚洲综合大片69999| 亚洲国产综合视频在线观看| 亚洲女性喷水在线观看一区| 欧美视频福利| 亚洲午夜一区二区| 日韩亚洲欧美精品| 欧美日韩喷水| 亚洲午夜一级| 亚洲一区二区免费看| 国产精品国产福利国产秒拍| 亚洲图片在线| 一本在线高清不卡dvd| 久久国产一区二区| 国内精品视频一区| 久久国产精品免费一区| 亚洲综合视频网| 国产欧美日本一区视频| 亚洲综合大片69999| 日韩一级精品视频在线观看| 麻豆精品网站| 欧美韩日一区| 麻豆成人在线观看| 欧美在线视频播放| 欧美理论电影在线播放| 亚洲国产精品一区二区久| 暖暖成人免费视频| 久久亚洲国产成人| 亚洲经典三级| 欧美成人精品一区二区三区| 久久久综合免费视频| 亚洲高清免费视频| 亚洲成色精品| 久久精品视频在线播放| 在线成人国产| 亚洲精品123区| 欧美日韩情趣电影| 亚洲欧美一区二区三区在线| 午夜免费日韩视频| 在线免费观看一区二区三区| 欧美激情导航| 欧美日韩亚洲系列| 久久精品视频在线观看| 久久久在线视频| 一本一本久久a久久精品牛牛影视| 91久久极品少妇xxxxⅹ软件| 欧美日韩亚洲免费| 久久久久久国产精品一区| 欧美77777| 制服丝袜亚洲播放| 亚洲视频你懂的| 黄网站免费久久| 久久只有精品| 欧美视频一区二区三区四区| 中文在线一区| 亚洲欧美怡红院| 在线观看日韩av| 亚洲第一精品福利| 欧美先锋影音| 乱码第一页成人| 性做久久久久久| 麻豆精品精华液| 亚洲欧美清纯在线制服| 老牛国产精品一区的观看方式| 亚洲一区二区三区免费在线观看| 久久精品日产第一区二区三区 | 国产精品男女猛烈高潮激情| 麻豆国产精品va在线观看不卡| 欧美日韩亚洲综合在线| 麻豆精品视频在线| 国产精品入口福利| 亚洲精品午夜| 在线观看欧美日本| 亚洲女同在线| 亚洲自拍偷拍福利| 欧美日韩国产美| 欧美国产视频日韩| 国产一区日韩欧美| 亚洲网站在线| 亚洲少妇诱惑| 欧美经典一区二区三区| 蜜桃av一区| 一区一区视频| 99国产精品久久久久久久久久| 亚洲欧美国产精品va在线观看| 亚洲麻豆国产自偷在线| 久久精品夜色噜噜亚洲aⅴ| 性欧美videos另类喷潮| 欧美色视频在线| 日韩写真在线| av成人免费在线观看| 免费高清在线视频一区·| 久久青草久久| 国产亚洲毛片在线| 欧美一区二区精品久久911| 亚洲欧美日韩在线观看a三区| 欧美伦理91| 亚洲精品日韩久久| 亚洲图色在线| 国产精品一区二区在线观看不卡 | 麻豆精品91| 亚洲欧洲精品一区二区精品久久久| 国产一区二区三区网站 | 午夜亚洲影视| 久久久久久久999| 国产日韩亚洲欧美| 午夜亚洲性色福利视频| 狂野欧美激情性xxxx欧美| 一区二区在线视频| 免费视频最近日韩| 亚洲精品免费一区二区三区| 亚洲精品欧洲| 国产精品yjizz| 亚洲男人的天堂在线| 欧美在线视频一区二区| 一区二区三区在线免费播放| 欧美精品v日韩精品v韩国精品v | 久久人人97超碰人人澡爱香蕉| 另类激情亚洲| 日韩天堂在线视频| 国产精品色网| 久久在线观看视频| 日韩视频一区二区| 久久精品国产综合| 99精品久久久| 国产偷久久久精品专区| 麻豆成人av| 亚洲影院色在线观看免费| 久久亚洲精品一区二区| 99精品国产在热久久下载| 国产欧美1区2区3区| 麻豆国产va免费精品高清在线| 99视频在线精品国自产拍免费观看| 欧美一级在线播放| 亚洲精品美女在线观看| 国产精品五区| 欧美国产日韩一区二区三区| 亚洲在线观看视频| 亚洲第一综合天堂另类专| 西瓜成人精品人成网站| 亚洲日本中文字幕区| 国产色综合天天综合网| 欧美另类99xxxxx| 久久久91精品国产| 亚洲特黄一级片| 亚洲高清视频在线| 久久精品国产精品亚洲| 国产一区二区三区久久精品| 久久久久99精品国产片| 一本久久综合亚洲鲁鲁| 在线播放日韩专区| 国产精品一区二区久久精品 | 免播放器亚洲| 欧美在线视频一区二区| 在线亚洲电影| 日韩亚洲欧美成人一区| 亚洲人成绝费网站色www| 欧美成人69av|