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

隨筆 - 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>
            欧美亚洲在线| 欧美成人精品高清在线播放| 国产精品久久久久9999| 欧美日韩一区在线观看视频| 欧美美女福利视频| 欧美日韩午夜剧场| 国产欧美一区二区三区视频| 国产日韩欧美91| 在线不卡中文字幕| 亚洲人精品午夜在线观看| 日韩一区二区福利| 午夜精品久久久久久久| 久久一区二区视频| 亚洲国产精品一区二区www| 亚洲国产成人不卡| 亚洲网站在线| 六月丁香综合| 国产精品国产a级| 韩国在线一区| 亚洲一区二区视频| 美女亚洲精品| 亚洲一区二区综合| 欧美xxx成人| 国产亚洲精品bt天堂精选| 亚洲国产成人av| 亚洲欧美日韩国产精品| 欧美成人午夜视频| 亚洲欧美影院| 欧美日韩成人免费| 在线看欧美日韩| 欧美一区激情视频在线观看| 亚洲国产精品一区二区www在线| 午夜精品亚洲| 欧美深夜福利| 亚洲乱码国产乱码精品精可以看 | 亚洲免费视频一区二区| 久久中文欧美| 亚洲中字在线| 葵司免费一区二区三区四区五区| 美日韩丰满少妇在线观看| 亚洲少妇一区| 欧美人成在线| 亚洲三级毛片| 欧美插天视频在线播放| 欧美亚洲日本网站| 国产精品美女主播| 亚洲一区精彩视频| 亚洲午夜影视影院在线观看| 亚洲精品护士| 欧美一级片在线播放| 日韩午夜激情电影| 久久综合中文色婷婷| 国产在线观看精品一区二区三区| 亚洲无线观看| 99国产精品视频免费观看一公开| 麻豆成人精品| 在线观看日韩一区| 久久夜色精品国产亚洲aⅴ| 亚洲免费视频一区二区| 国产精品国产三级国产专区53 | 宅男噜噜噜66国产日韩在线观看| 女女同性精品视频| 欧美一区二区在线免费观看| 国产日韩av一区二区| 久久国产欧美日韩精品| 欧美一区二区大片| 国精产品99永久一区一区| 久久免费国产| 久久免费视频一区| 亚洲国产成人久久综合| 欧美激情一区二区三区在线| 免费欧美在线| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲国产成人在线视频| 久久久欧美一区二区| 久久经典综合| 亚洲黄色尤物视频| 亚洲精品女人| 欧美日韩国产综合一区二区| 亚洲香蕉在线观看| 性色av一区二区三区| 在线日韩日本国产亚洲| 亚洲日韩欧美视频| 国产精品视频久久| 猛男gaygay欧美视频| 欧美精品99| 欧美一级久久| 久久夜色精品亚洲噜噜国产mv| 亚洲精品在线一区二区| 一区二区三区高清在线| 激情综合五月天| 一本一道久久综合狠狠老精东影业| 国产亚洲电影| 亚洲黄色成人久久久| 国产女人18毛片水18精品| 亚洲第一区在线| 国产日本欧美一区二区| 亚洲国产天堂久久综合网| 国产精品色一区二区三区| 欧美ab在线视频| 欧美午夜一区二区三区免费大片 | 最近看过的日韩成人| 国产精品日韩精品欧美在线| 免费在线看一区| 欧美午夜电影在线| 欧美成在线视频| 国产欧美午夜| 在线一区二区三区做爰视频网站| 1024亚洲| 欧美伊人久久久久久久久影院| 亚洲日本中文| 久久久久九九九九| 午夜日本精品| 欧美日韩精品在线观看| 免费成人在线视频网站| 国产视频一区在线观看| 99精品国产一区二区青青牛奶| 在线观看国产精品淫| 亚洲一区二区三区午夜| 一二三区精品福利视频| 欧美aⅴ99久久黑人专区| 久久日韩精品| 国产视频一区在线观看| 亚洲综合色在线| 亚洲免费视频成人| 欧美日韩一区二区三区免费看| 亚洲电影在线播放| 亚洲高清在线观看| 久久国内精品视频| 久久久亚洲一区| 狠狠色综合色区| 久久不射电影网| 久久久久久亚洲精品不卡4k岛国| 国产精品一香蕉国产线看观看| 一区二区精品| 亚洲欧美成人网| 国产精品中文在线| 亚洲欧美国产va在线影院| 亚洲综合色在线| 国产精品久久久久毛片大屁完整版 | 国产精品热久久久久夜色精品三区 | 一本久道久久久| 免费不卡中文字幕视频| 欧美第一黄色网| 亚洲美女精品成人在线视频| 欧美黄污视频| 一区二区激情小说| 久久成人精品视频| 樱桃成人精品视频在线播放| 久久久久久久综合狠狠综合| 蜜桃av一区| 亚洲另类自拍| 国产精品久久久久久久7电影| 欧美一区二区三区在| 国产模特精品视频久久久久| 午夜精品成人在线| 欧美成人一区二区| 一本一本大道香蕉久在线精品| 欧美久久久久免费| 亚洲一级黄色av| 久久一区二区三区超碰国产精品| 亚洲精品欧美一区二区三区| 欧美视频在线看| 欧美在线观看视频在线| 亚洲丶国产丶欧美一区二区三区| 一区二区三区四区五区视频| 国产精品自拍在线| 久久久久久婷| 日韩视频一区二区在线观看| 欧美在线一级视频| 亚洲高清视频一区二区| 国产精品国产三级国产aⅴ入口| 久久精品国产精品亚洲| 亚洲国产日韩美| 欧美伊人久久| 亚洲精品日韩久久| 国产日韩欧美一区二区| 欧美丰满少妇xxxbbb| 欧美一进一出视频| 欧美精品一区二区在线播放| 亚洲欧美日韩国产中文| 欧美护士18xxxxhd| 久久九九热免费视频| 一区二区三区久久久| 欧美激情精品久久久久久免费印度| 亚洲一区尤物| 亚洲激情在线激情| 国产日韩精品一区二区| 欧美精品乱人伦久久久久久| 欧美一区二区视频在线| 9i看片成人免费高清| 欧美激情二区三区| 巨胸喷奶水www久久久免费动漫| 亚洲永久在线观看| 日韩亚洲国产欧美| 亚洲缚视频在线观看| 国产精自产拍久久久久久| 欧美高清视频在线播放| 久久精品五月婷婷| 亚洲欧美另类在线|