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

隨筆 - 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>
            亚洲欧美日韩中文播放| 亚洲精品久久| 久久精品最新地址| 一区免费观看视频| 欧美激情一二区| 欧美日韩一区综合| 欧美一区二区三区在线免费观看| 亚洲免费在线视频| 伊人久久大香线蕉综合热线| 欧美成人在线影院| 国产精品国产馆在线真实露脸| 欧美一级黄色网| 久久综合中文字幕| 亚洲特级毛片| 久久精品国产一区二区三区| 亚洲美女在线视频| 亚洲欧美日韩精品久久亚洲区| 在线观看精品视频| 99re66热这里只有精品4| 国产视频一区三区| 91久久精品美女| 国产婷婷色一区二区三区在线| 蜜桃av噜噜一区| 国产精品v日韩精品v欧美精品网站| 欧美在线欧美在线| 欧美日韩成人综合天天影院| 久久精品国产99| 欧美激情在线| 另类专区欧美制服同性| 欧美性猛交xxxx免费看久久久| 美腿丝袜亚洲色图| 国产精品一区二区男女羞羞无遮挡| 免费看成人av| 国产一区在线观看视频| a4yy欧美一区二区三区| 亚洲国产毛片完整版| 亚洲一区二区久久| a4yy欧美一区二区三区| 国产视频久久久久久久| 99精品免费| 亚洲精品一区二区三区樱花| 久久国产精品亚洲va麻豆| 香蕉国产精品偷在线观看不卡| 欧美成人综合| 欧美大片网址| 一区二区三区在线观看欧美| 新67194成人永久网站| 亚洲午夜日本在线观看| 欧美精品尤物在线| 亚洲高清二区| 亚洲国产高清aⅴ视频| 久久激情一区| 麻豆av一区二区三区| 国产亚洲激情视频在线| 亚洲欧美中文另类| 欧美一级精品大片| 国产老肥熟一区二区三区| 宅男在线国产精品| 亚洲欧美经典视频| 国产精品久久久久av| 一区二区三区精品国产| 亚洲性人人天天夜夜摸| 欧美日韩一区二区三区在线看| 亚洲区免费影片| 一区二区久久久久| 欧美天堂亚洲电影院在线播放| 亚洲精品自在久久| 亚洲综合清纯丝袜自拍| 国产精品久久久久久久久婷婷 | 激情久久久久久| 久久精品视频va| 欧美成人69| 9i看片成人免费高清| 国产精品99免费看 | 亚洲福利视频一区| 一本综合久久| 国产精品视频男人的天堂| 亚洲影院在线观看| 久久婷婷人人澡人人喊人人爽| 136国产福利精品导航网址| 欧美成人中文字幕在线| aa成人免费视频| 久久九九国产精品| 亚洲精品久久久久久久久久久久久| 欧美电影专区| 亚洲一区二区三区在线播放| 玖玖玖免费嫩草在线影院一区| 亚洲国产视频a| 欧美视频第二页| 欧美在线观看网站| 91久久国产精品91久久性色| 午夜精品电影| 亚洲国产另类久久精品| 欧美视频在线观看一区二区| 小黄鸭视频精品导航| 亚洲成人直播| 欧美一区二区三区喷汁尤物| 亚洲国产激情| 国产精品你懂得| 免费黄网站欧美| 亚洲午夜av在线| 欧美xxx成人| 西瓜成人精品人成网站| 亚洲人成绝费网站色www| 国产精品一区二区你懂的| 免费一区视频| 欧美在线免费播放| 国产精品视频网站| 欧美不卡视频| 欧美在线视频免费播放| 一本色道久久综合狠狠躁篇的优点 | 日韩一级精品| 欧美成人午夜影院| 欧美一区二区女人| 一区二区三区精品在线| 在线看国产日韩| 国产日韩精品一区二区| 欧美性感一类影片在线播放| 美女图片一区二区| 久久国产婷婷国产香蕉| 亚洲欧美日韩区| 一区二区久久久久| 亚洲精品国产精品乱码不99| 美女精品在线| 久久久久国产精品www| 午夜精品久久久99热福利| 一区二区三区不卡视频在线观看 | 亚洲成色777777女色窝| 国产女同一区二区| 国产精品日本| 国产精品久久久久9999吃药| 欧美日本国产| 欧美日韩国产精品| 欧美精品大片| 欧美激情一级片一区二区| 女仆av观看一区| 欧美大片在线看| 欧美成人免费小视频| 欧美岛国激情| 欧美福利影院| 欧美精选在线| 欧美日韩亚洲精品内裤| 欧美特黄一级| 国产精品久久久久久久久久直播 | 国产一区二区三区自拍| 国产一二精品视频| 国产一区二区久久| 一区二区三区在线免费播放| 黄色综合网站| 亚洲国产精品成人| 亚洲毛片在线看| 亚洲午夜av| 欧美中文字幕视频在线观看| 久久夜色精品一区| 欧美国产日韩一区二区| 亚洲日本在线视频观看| 在线视频欧美日韩| 欧美在线不卡| 蜜桃av综合| 欧美午夜一区二区| 国产丝袜一区二区| 亚洲国产成人高清精品| 99精品视频一区| 欧美一级在线视频| 嫩草影视亚洲| 99视频精品| 久久精品麻豆| 欧美欧美天天天天操| 国产精品一区二区视频| 亚洲福利在线看| 亚洲性线免费观看视频成熟| 久久av二区| 亚洲国产一区二区三区青草影视| 在线午夜精品自拍| 久久精品国产清自在天天线| 欧美成人免费播放| 国产精品剧情在线亚洲| 经典三级久久| 狂野欧美一区| 国产精品电影观看| 亚洲福利国产| 欧美亚洲一区二区在线| 欧美激情视频网站| 亚洲欧美日韩国产一区二区三区| 美日韩在线观看| 国产三区精品| 在线亚洲一区观看| 欧美顶级艳妇交换群宴| 午夜国产精品影院在线观看| 欧美成人精精品一区二区频| 国产啪精品视频| 亚洲视频在线一区| 亚洲国产精品久久久久| 久久国产婷婷国产香蕉| 国产精品美女久久久久久久| 日韩午夜一区| 亚洲风情亚aⅴ在线发布| 久久精品国产v日韩v亚洲 | 狠狠久久亚洲欧美| 欧美亚洲一区三区|