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

隨筆 - 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>
            欧美在线影院在线视频| 欧美日韩亚洲不卡| 夜夜夜久久久| 乱人伦精品视频在线观看| 久久久久99精品国产片| 激情欧美一区二区三区在线观看 | 久久国产99| 久久人人爽人人爽| 亚洲激情国产精品| 欧美日韩裸体免费视频| 国产精品99久久久久久人| 亚洲免费在线视频| 国产一本一道久久香蕉| 久热国产精品视频| 欧美xxx在线观看| 欧美日韩一区二区视频在线观看| 91久久精品国产91久久| 亚洲国产成人在线视频| 欧美视频一区| 久久精品人人爽| 亚洲伦理中文字幕| 欧美一区二区在线免费观看| 伊人久久大香线蕉av超碰演员| 欧美福利专区| 国产精品久久毛片a| 9色精品在线| 久久夜色精品国产亚洲aⅴ| 中文高清一区| 亚洲国产高潮在线观看| 国产精品女主播在线观看| 老司机久久99久久精品播放免费 | 国产精品免费电影| 另类成人小视频在线| 9l国产精品久久久久麻豆| 米奇777在线欧美播放| 亚洲一区二区不卡免费| 亚洲韩国日本中文字幕| 国产美女精品| 欧美日韩精选| 免费成人你懂的| 久久国产一二区| 亚洲少妇自拍| 亚洲精品一区二区在线| 免费视频最近日韩| 欧美一区二区视频在线观看| 亚洲日本视频| 伊人久久综合| 国内外成人免费激情在线视频| 欧美日韩免费在线观看| 欧美ab在线视频| 久久综合一区二区三区| 久久国产精品网站| 久久国产夜色精品鲁鲁99| 亚洲欧美综合| 午夜一区在线| 亚久久调教视频| 亚洲婷婷免费| 亚洲小视频在线| 亚洲一区二区精品在线观看| 亚洲天堂偷拍| 午夜亚洲激情| 久久久久久有精品国产| 欧美视频在线观看视频极品| 欧美精品一区二区三区在线播放| 女主播福利一区| 欧美大片一区二区| 欧美日韩国产123区| 蜜臀av一级做a爰片久久| 性久久久久久久久久久久| 一区二区三区精品视频在线观看| 欧美国产精品劲爆| 欧美电影在线播放| 亚洲国产精品123| 欧美激情一区二区三区蜜桃视频 | 99国产精品久久久久久久| 最新日韩精品| 亚洲神马久久| 欧美一区二区在线看| 老司机凹凸av亚洲导航| 欧美高清在线视频| 欧美精品自拍| 欧美午夜a级限制福利片| 欧美系列精品| 国产午夜精品视频| 亚洲精品网址在线观看| 亚洲综合丁香| 玖玖精品视频| 亚洲午夜视频在线| 久久久久一区| 国产精品福利网站| 国产欧美精品一区二区三区介绍 | 亚洲乱码国产乱码精品精可以看| 99国产精品视频免费观看| 欧美一级电影久久| 亚洲成人在线视频播放| 日韩图片一区| 久久久九九九九| 欧美日一区二区在线观看| 国语自产精品视频在线看8查询8| 99精品热视频只有精品10| 亚洲欧美中文日韩在线| 欧美国产精品专区| 久久成人免费网| 国产精品久久久免费| 亚洲高清在线观看| 性高湖久久久久久久久| 亚洲国产婷婷香蕉久久久久久99| 亚洲欧美日韩国产一区二区三区| 欧美激情1区| 极品裸体白嫩激情啪啪国产精品| 亚洲小视频在线观看| 欧美成人午夜免费视在线看片| 午夜精品999| 亚洲乱码国产乱码精品精98午夜 | 午夜视频精品| 国产精品久久久免费| 亚洲美女免费精品视频在线观看| 麻豆精品视频| 欧美在线一二三四区| 国产精品亚发布| 宅男在线国产精品| 亚洲激情第一区| 欧美刺激午夜性久久久久久久| 黄色成人在线网站| 欧美一区二区三区四区在线观看| 亚洲看片免费| 欧美成人精品影院| 一色屋精品视频在线观看网站| 欧美影院一区| 欧美影院成年免费版| 国产日韩一区二区三区| 欧美一区免费| 亚洲在线免费观看| 国产精品成人免费精品自在线观看| 99综合精品| 亚洲精选国产| 欧美亚韩一区| 久久精品亚洲精品| 久久久久在线| 亚洲免费观看高清完整版在线观看熊| 亚洲成色www久久网站| 欧美成年人视频网站| 日韩一区二区高清| 日韩网站在线看片你懂的| 欧美特黄一区| 久久aⅴ乱码一区二区三区| 欧美中文在线观看国产| 亚洲高清视频在线观看| 亚洲国产91| 国产精品白丝av嫩草影院| 午夜精品免费在线| 久久理论片午夜琪琪电影网| 亚洲人成网在线播放| 亚洲毛片网站| 国内伊人久久久久久网站视频| 你懂的成人av| 欧美日韩一区二区三区高清| 西瓜成人精品人成网站| 久久久美女艺术照精彩视频福利播放| 亚洲欧洲另类| 亚洲视频网在线直播| 狠狠色噜噜狠狠狠狠色吗综合| 欧美高清视频一区二区| 欧美日韩免费视频| 裸体一区二区三区| 欧美日韩美女在线| 久久久国产成人精品| 欧美日本成人| 香蕉亚洲视频| 欧美激情无毛| 久久青青草原一区二区| 欧美日韩福利| 欧美高清在线播放| 国产精品少妇自拍| 亚洲一区视频在线| 伊人久久亚洲美女图片| 最新国产精品拍自在线播放| 国产精品v日韩精品| 久久亚洲图片| 国产精品亚洲精品| 亚洲狠狠婷婷| 国产农村妇女毛片精品久久麻豆| 久久午夜电影| 国产精品久久久久久妇女6080| 欧美99久久| 国产欧美日韩在线观看| 亚洲精品久久久一区二区三区| 国内一区二区在线视频观看| 制服丝袜激情欧洲亚洲| 亚洲三级观看| 久久这里有精品15一区二区三区| 亚洲欧美日本伦理| 欧美日韩久久久久久| 欧美黄色精品| 亚洲国产精品va在线观看黑人| 亚洲免费在线播放| 亚洲一区二区三区在线观看视频| 欧美电影免费观看网站| 免费久久久一本精品久久区| 黄色在线成人|