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

隨筆 - 42  文章 - 3  trackbacks - 0
<2025年12月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

常用鏈接

留言簿(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 鷹擊長空 閱讀(485) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   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>
            亚洲国产日韩欧美| 国产综合色产| 夜夜爽夜夜爽精品视频| 亚洲一区视频在线| 免费影视亚洲| 国产精品日韩一区| 久久这里有精品视频| 男女精品网站| 亚洲自拍都市欧美小说| 欧美激情1区2区| 影音先锋欧美精品| 欧美一区二区三区喷汁尤物| 亚洲电影欧美电影有声小说| 亚洲女同在线| 精品1区2区3区4区| 久久久xxx| 亚洲免费婷婷| 1769国内精品视频在线播放| 久久成人精品一区二区三区| 一区二区三区日韩在线观看| 欧美激情在线观看| 亚洲国产成人午夜在线一区| 久久久久五月天| 午夜在线视频观看日韩17c| 国产精品va在线播放| av成人国产| 亚洲美女在线看| 欧美日韩一区二区三区四区在线观看| 91久久国产综合久久| 欧美aⅴ一区二区三区视频| 欧美日韩精品一区二区在线播放| 日韩视频一区二区| 亚洲日韩欧美视频| 欧美日韩亚洲激情| 久久综合影音| 久久一日本道色综合久久| 亚洲第一福利视频| 亚洲一区精品电影| 亚洲精品日韩久久| 日韩一级裸体免费视频| 一区免费在线| 性做久久久久久久久| 一区二区三区欧美亚洲| 亚洲一级黄色片| 国产日韩欧美在线| 久久久夜精品| 国产精品日韩在线| 亚洲另类一区二区| 国产精品免费区二区三区观看| 小辣椒精品导航| 久久精品视频在线播放| 亚洲国产你懂的| 99re6这里只有精品| 亚洲国产日韩欧美综合久久| 欧美一区综合| 日韩一级精品视频在线观看| 在线视频一区二区| 伊人狠狠色j香婷婷综合| 亚洲欧美成人一区二区在线电影| 99视频精品在线| 欧美国产在线观看| 亚洲国产色一区| 亚洲欧洲综合另类在线| 免播放器亚洲一区| 亚洲一区欧美二区| 久久久www| 老司机午夜精品视频| 国产亚洲精品aa午夜观看| 亚洲国产片色| 99精品热视频只有精品10| 欧美激情一二区| 亚洲美女视频在线免费观看| 一本一本久久a久久精品牛牛影视| 欧美成人免费一级人片100| 欧美一区二区精品| 国产欧美一区二区三区在线看蜜臀| 亚洲二区精品| 亚洲精品一区二区三| 欧美激情日韩| 中文日韩在线| 久久久久免费| 亚洲国产一区二区在线| 欧美国产一区二区三区激情无套| 亚洲精品乱码久久久久| 午夜精品久久久久久久久久久| 美女被久久久| 日韩视频一区| 久久精品二区三区| 国产精品美女诱惑| 欧美中文字幕| 亚洲国产精品久久91精品| 99热这里只有成人精品国产| 国产精品毛片| 米奇777在线欧美播放| 最新成人av网站| 亚洲精品欧美一区二区三区| 欧美日韩专区在线| 日韩午夜在线电影| 久久gogo国模裸体人体| 亚洲国产另类久久精品| 欧美日韩国产综合视频在线观看| 亚洲欧美日韩国产成人| 香蕉国产精品偷在线观看不卡| 国内外成人免费视频| 99在线精品免费视频九九视| 欧美一级艳片视频免费观看| 亚洲第一精品福利| 国产精品啊啊啊| 免费观看成人鲁鲁鲁鲁鲁视频| 99精品视频免费全部在线| 久久久久五月天| 亚洲视频香蕉人妖| 国产精品五月天| 欧美激情中文字幕乱码免费| 午夜亚洲福利| 99精品欧美一区二区三区| 玖玖综合伊人| 久久精品国产免费| 中日韩视频在线观看| 亚洲国产精品精华液2区45| 国产精品亚洲一区| 欧美日韩国产一区精品一区| 久久综合九色综合欧美就去吻 | 国产精品一区二区三区四区五区 | 久久在线视频在线| 亚洲欧美成人精品| 国产亚洲激情视频在线| 欧美日韩亚洲91| 欧美精品亚洲精品| 久久综合中文字幕| 久久激情五月婷婷| 亚洲第一福利视频| 蜜臀va亚洲va欧美va天堂| 亚洲精品影院| 亚洲国产专区| 亚洲国产成人精品久久| 狠狠狠色丁香婷婷综合久久五月 | 国产偷自视频区视频一区二区| 欧美日本高清视频| 香蕉久久夜色精品国产| 亚洲一区二区成人| 亚洲天堂偷拍| 亚洲综合三区| 亚洲欧美综合网| 欧美一区二区观看视频| 亚洲高清不卡一区| 欧美激情女人20p| 亚洲欧美日韩直播| 亚洲欧美日韩精品久久亚洲区| 亚洲欧美成人综合| 亚洲欧美日韩另类| 久久国产精品黑丝| 久久亚洲国产精品日日av夜夜| 久久蜜桃资源一区二区老牛 | 久久久久久久精| 久久久福利视频| 另类激情亚洲| 亚洲欧洲视频在线| 99国产精品久久久久久久成人热| 亚洲美洲欧洲综合国产一区| 一本色道精品久久一区二区三区| 99视频精品免费观看| 亚洲欧美一区二区在线观看| 久久人人爽人人爽爽久久| 午夜精品免费| 久久久久国产成人精品亚洲午夜| 猛男gaygay欧美视频| 欧美国产日本韩| 亚洲免费不卡| 午夜精品剧场| 欧美搞黄网站| 国产精品久久网站| 在线观看av不卡| 一本一本久久| 久久精品色图| 亚洲精品影院在线观看| 日韩一区二区精品葵司在线| 午夜天堂精品久久久久| 免费日韩av片| 国产欧美精品在线| 亚洲精品久久久久久久久久久久久| 亚洲一区二区影院| 欧美sm极限捆绑bd| 一本色道久久综合亚洲二区三区| 欧美专区在线观看一区| 亚洲一区二区三区四区五区黄| 欧美日韩一区二区高清| 国产欧美一区二区三区视频| 在线观看国产日韩| 亚洲女ⅴideoshd黑人| 欧美11—12娇小xxxx| 在线性视频日韩欧美| 蜜桃av噜噜一区| 国产在线观看一区| 亚洲一区二区三区久久| 久久一区国产| 亚洲欧美在线播放| 欧美性猛交一区二区三区精品| 在线日韩中文字幕| 久久国产精品一区二区|