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

隨筆 - 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>
            亚洲电影在线| 夜夜嗨av一区二区三区中文字幕| 香蕉免费一区二区三区在线观看| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ入口 | 亚洲精品一区二区三区福利| 欧美激情亚洲自拍| 欧美精品二区| 亚洲免费在线观看| 亚洲在线电影| 在线观看久久av| 亚洲三级电影全部在线观看高清| 欧美精品激情在线观看| 亚洲尤物在线| 久久精品国产免费看久久精品| 亚洲第一综合天堂另类专| 亚洲国产一区二区a毛片| 欧美日韩亚洲综合| 久久久国产精品亚洲一区| 久久综合九九| 午夜日韩视频| 蜜桃av一区二区三区| 亚洲图片欧美午夜| 久久久在线视频| 在线视频亚洲一区| 久久久久九九视频| 亚洲综合视频网| 老司机精品视频一区二区三区| 日韩视频免费观看高清在线视频| 亚洲综合不卡| 99在线热播精品免费99热| 午夜视频在线观看一区二区| 亚洲欧洲另类| 欧美综合77777色婷婷| av72成人在线| 蜜臀av一级做a爰片久久 | 国产一区二三区| 99re6这里只有精品| 黄色日韩网站| 亚洲一区二区网站| 一区二区日韩精品| 久久在线免费观看视频| 午夜精品视频在线观看一区二区 | 艳女tv在线观看国产一区| 亚洲高清不卡av| 欧美一级视频精品观看| 亚洲系列中文字幕| 欧美极品在线播放| 欧美大片第1页| 激情久久久久久久| 小黄鸭精品密入口导航| 亚洲一区二区三区影院| 欧美精品一区二区三区蜜臀| 欧美大片免费看| 尤物视频一区二区| 欧美在线影院| 久久久人成影片一区二区三区| 欧美四级电影网站| 99精品视频免费观看视频| 91久久久久| 免费日韩一区二区| 亚洲成色999久久网站| 一区二区三区四区蜜桃| 99爱精品视频| 欧美日韩精品免费观看| 亚洲国产一区二区精品专区| 亚洲欧洲精品一区| 欧美.www| 亚洲精品日日夜夜| 亚洲香蕉在线观看| 国产精品毛片一区二区三区| 亚洲亚洲精品在线观看| 亚洲免费视频一区二区| 国产精品久久久久999| 亚洲一区二区在线观看视频| 欧美一级久久久久久久大片| 国产女精品视频网站免费| 欧美一级片久久久久久久| 久久综合一区二区三区| 亚洲国产精品久久久久| 欧美极品一区二区三区| 一本大道久久a久久综合婷婷| 一区二区三区四区五区视频| 国产精品日韩久久久| 欧美在线观看视频在线| 欧美顶级少妇做爰| 中文无字幕一区二区三区| 国产精品每日更新| 久久久国产精品一区| 亚洲国产成人91精品| 亚洲永久免费精品| 国产日韩欧美在线播放不卡| 久久女同互慰一区二区三区| 亚洲人体1000| 欧美一区三区二区在线观看| 狠狠操狠狠色综合网| 模特精品裸拍一区| 亚洲女同精品视频| 欧美激情欧美激情在线五月| 亚洲女同性videos| 免费久久99精品国产自| 亚洲色图综合久久| 海角社区69精品视频| 欧美日韩综合网| 久久久久久免费| 亚洲一区二区三区涩| 欧美高清在线一区二区| 香蕉久久夜色| 一本大道久久a久久精二百| 国产亚洲网站| 欧美系列亚洲系列| 免费观看不卡av| 午夜亚洲性色福利视频| 亚洲精品在线三区| 欧美1区3d| 久久激情一区| 亚洲免费影视第一页| 亚洲精品一区在线| 国内精品模特av私拍在线观看| 欧美日韩国产综合视频在线观看中文 | 欧美伊人久久大香线蕉综合69| 亚洲激情在线视频| 久久精品中文字幕一区二区三区| av成人国产| 亚洲激情电影中文字幕| 国产一区二区中文| 国产精品美女主播| 欧美视频在线观看 亚洲欧| 狂野欧美激情性xxxx欧美| 先锋亚洲精品| 亚洲影院免费观看| 一区二区日韩精品| 日韩亚洲视频| 亚洲精品视频在线看| 亚洲成人在线网站| 欧美国产日韩一区二区| 久久中文精品| 麻豆免费精品视频| 久久综合五月| 久久综合色8888| 久久午夜羞羞影院免费观看| 欧美一区二区三区男人的天堂 | 久久激情五月激情| 欧美一区三区三区高中清蜜桃| 亚洲自拍偷拍麻豆| 亚洲欧美日韩一区在线| 亚洲免费影视第一页| 新67194成人永久网站| 欧美亚洲免费高清在线观看| 午夜精品久久久久久久99黑人| 亚洲影视九九影院在线观看| 亚洲在线视频观看| 欧美在线日韩| 久久中文久久字幕| 亚洲第一精品在线| 亚洲精品在线三区| 亚洲一级二级在线| 欧美一区二区三区在线视频| 久久福利电影| 欧美成年人视频网站| 欧美日韩精品三区| 国产精品一区二区三区观看| 国产亚洲欧洲一区高清在线观看 | 欧美人成在线| 国产精品日韩精品欧美在线| 国产日韩一区在线| 亚洲欧洲一区| 亚洲欧美bt| 麻豆国产精品一区二区三区| 亚洲国产成人在线视频| 亚洲一区成人| 久久亚洲精品网站| 国产精品99一区| 国产一区二区欧美| 亚洲美女精品成人在线视频| 亚洲一区高清| 欧美成人一区二区三区片免费| 日韩视频免费观看高清完整版| 午夜久久影院| 欧美成人按摩| 国产欧美在线观看一区| 亚洲精品日产精品乱码不卡| 午夜精品亚洲一区二区三区嫩草| 久久五月激情| 中文精品视频一区二区在线观看| 久久精品麻豆| 国产精品久久网站| 91久久午夜| 久久久91精品国产| 一本色道久久综合狠狠躁的推荐| 欧美一区二区三区日韩视频| 欧美日本韩国一区| 在线观看亚洲一区| 午夜一区不卡| 亚洲日本在线观看| 久久久久一区二区| 国产日韩欧美视频在线| 中国成人黄色视屏| 亚洲区第一页| 鲁大师影院一区二区三区| 国产欧美综合在线|