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

隨筆 - 42  文章 - 3  trackbacks - 0
<2025年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網(wǎ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) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發(fā)表評論。
網(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>
            亚洲午夜精品福利| 午夜影视日本亚洲欧洲精品| 一本色道久久综合亚洲精品小说| 18成人免费观看视频| 国内精品视频在线播放| 亚洲电影欧美电影有声小说| 精品成人国产在线观看男人呻吟| 在线免费观看日本一区| 最近中文字幕日韩精品| 一区二区三区不卡视频在线观看| 亚洲一区视频| 久久裸体视频| 亚洲国产精品久久人人爱蜜臀| 亚洲国产99精品国自产| 亚洲激情一区| 香蕉av777xxx色综合一区| 久久综合九色综合欧美狠狠| 欧美激情在线观看| 国产伦精品一区二区三区照片91| 在线国产日韩| 午夜一区在线| 91久久综合亚洲鲁鲁五月天| 午夜精品久久久久久久久久久 | 99视频国产精品免费观看| 中文日韩在线视频| 久久综合色8888| 国产精品麻豆va在线播放| 在线播放亚洲一区| 亚洲男人影院| 91久久在线| 久久九九全国免费精品观看| 欧美日韩亚洲视频一区| 在线观看福利一区| 欧美亚洲一区二区在线| 亚洲人成在线观看一区二区| 久久国产乱子精品免费女| 国产精品盗摄一区二区三区| 最新成人av网站| 久久亚洲午夜电影| 午夜免费日韩视频| 国产精品乱码久久久久久| 亚洲精品美女| 欧美承认网站| 欧美黄色网络| 欧美一区二视频在线免费观看| 欧美成人精品1314www| 国产欧美精品在线| 亚洲欧美中文日韩v在线观看| 亚洲人成网站777色婷婷| 久久伊人精品天天| 狠狠色狠狠色综合系列| 欧美中文字幕视频| 亚洲一区二区三区精品视频 | 国产精品免费看| 日韩一区二区免费高清| 欧美超级免费视 在线| 欧美尤物一区| 国产一区二区三区在线观看免费视频 | 国产精品成人一区二区艾草| 亚洲视频国产视频| 欧美激情一区二区三区成人| 曰韩精品一区二区| 可以免费看不卡的av网站| 亚洲欧美日韩成人| 国产一区二区三区奇米久涩| 久久精品国产在热久久| 欧美一区二区视频在线观看| 国产精品自拍在线| 久久精品国产69国产精品亚洲| 午夜亚洲性色视频| 国模 一区 二区 三区| 老司机免费视频一区二区| 久久久久久久激情视频| 91久久精品国产91性色tv| 亚洲国产精品精华液网站| 欧美国产日本在线| 在线亚洲免费| 亚洲欧美在线观看| 在线观看视频一区二区| 亚洲第一精品福利| 欧美日韩一区二区欧美激情| 亚洲一区二区高清| 性久久久久久| 亚洲精品免费在线观看| 一区二区高清| 国产亚洲精品7777| 欧美成人午夜免费视在线看片| 欧美韩国日本综合| 欧美一区二区三区啪啪| 久久激情五月丁香伊人| 亚洲人成免费| 亚洲视频一区二区| 精品福利免费观看| 亚洲免费观看在线观看| 国产一区 二区 三区一级| 欧美黄色成人网| 国产精品嫩草久久久久| 久色婷婷小香蕉久久| 免费观看一区| 亚洲精品日韩欧美| 欧美精品在线观看| 久久国产精品久久久久久久久久 | 激情综合色综合久久| 亚洲欧洲精品一区二区| 国产免费成人av| 亚洲国产高清一区二区三区| 国产精品一区一区| 亚洲国产二区| 国产自产v一区二区三区c| 亚洲精品欧美日韩专区| 国产综合久久| 在线视频你懂得一区二区三区| 亚洲第一天堂av| 亚洲欧美日韩第一区| 亚洲午夜久久久| 蜜臀91精品一区二区三区| 久久精品1区| 国产精品久久久久久久久| 亚洲大片一区二区三区| 狠狠色狠狠色综合日日小说| 亚洲永久免费观看| 亚洲一区二区三区精品在线| 欧美国产欧美亚州国产日韩mv天天看完整| 午夜天堂精品久久久久| 欧美午夜美女看片| 亚洲破处大片| 亚洲精品乱码久久久久久按摩观| 久久国内精品视频| 欧美一区三区三区高中清蜜桃| 欧美三级视频在线观看| 日韩网站在线看片你懂的| 亚洲精品免费一二三区| 欧美成人亚洲| 亚洲日本免费电影| 日韩亚洲欧美在线观看| 欧美日韩1区2区3区| 亚洲黄色一区| 亚洲视频图片小说| 欧美日韩国产综合新一区| 亚洲日本在线观看| 亚洲调教视频在线观看| 国产精品高精视频免费| 亚洲一区二区三区四区五区黄| 亚洲一卡久久| 国产精品日产欧美久久久久| 亚洲欧美日韩另类| 久久久亚洲精品一区二区三区 | 亚洲视频在线二区| 欧美性做爰毛片| 亚洲性图久久| 久久免费偷拍视频| 在线成人亚洲| 欧美jizzhd精品欧美巨大免费| 91久久综合| 亚洲天天影视| 国内精品**久久毛片app| 久久婷婷蜜乳一本欲蜜臀| 欧美成人在线免费观看| 99天天综合性| 国产真实精品久久二三区| 久久先锋影音| 亚洲国产经典视频| 亚洲手机在线| 国产一区二区无遮挡| 美日韩丰满少妇在线观看| 亚洲激情视频在线| 久久激情综合网| 日韩亚洲成人av在线| 国产精品一二| 欧美成人日本| 午夜老司机精品| 亚洲黄一区二区三区| 欧美在线观看天堂一区二区三区| 亚洲国产精品电影在线观看| 国产精品家教| 欧美sm极限捆绑bd| 亚洲欧美制服另类日韩| 亚洲激情视频在线| 久久久国产精品一区二区三区| 一本一本久久a久久精品综合妖精| 国产欧美精品va在线观看| 久久伊人精品天天| 亚洲欧美日韩网| 日韩一级精品| av成人国产| 欧美母乳在线| 欧美www视频| 红桃视频亚洲| 欧美亚洲成人网| 欧美成人免费大片| 久久精品综合一区| 亚洲一二三区精品| 亚洲精品乱码| 亚洲第一偷拍| 模特精品裸拍一区| 久久久久久一区| 欧美在线精品免播放器视频| 中文av一区二区| 亚洲最新中文字幕| 亚洲精品少妇30p|