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

隨筆 - 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>
            欧美日韩国产黄| 欧美日韩另类在线| 国产一区日韩二区欧美三区| 欧美一区二区播放| 亚洲欧美日韩在线不卡| 国产区二精品视| 久久精品日产第一区二区| 午夜视频在线观看一区| 怡红院精品视频| 亚洲国产成人av| 欧美日韩午夜剧场| 午夜亚洲精品| 久久婷婷久久一区二区三区| 日韩午夜激情电影| 亚洲一区二区在线免费观看| 国产中文一区二区三区| 欧美二区不卡| 国产精品xxxxx| 久久全球大尺度高清视频| 欧美成人精品在线视频| 午夜精品一区二区三区四区| 久久岛国电影| 在线亚洲欧美| 久久九九热re6这里有精品| 亚洲精品乱码久久久久| 亚洲综合成人婷婷小说| 亚洲国产91精品在线观看| 一本色道久久综合狠狠躁篇怎么玩 | 性做久久久久久免费观看欧美| 伊人久久亚洲美女图片| 9i看片成人免费高清| 伊人色综合久久天天五月婷| aa亚洲婷婷| 亚洲国产欧美一区| 亚洲欧美日韩国产| 一本色道婷婷久久欧美| 久久精品免费观看| 亚洲小说区图片区| 老司机午夜精品视频| 午夜精品婷婷| 欧美日本在线观看| 美国成人毛片| 国产酒店精品激情| 日韩午夜高潮| 亚洲精品一级| 久久香蕉国产线看观看网| 性欧美暴力猛交另类hd| 欧美日韩免费观看一区| 欧美激情一区二区三区成人| 国产亚洲第一区| 亚洲无限av看| 亚洲网站视频福利| 欧美日本韩国一区二区三区| 欧美国产亚洲另类动漫| 精品不卡一区| 久久精品国产免费| 久久久91精品| 国产手机视频精品| 亚洲欧美日韩另类| 亚洲欧美中文日韩v在线观看| 欧美另类亚洲| 亚洲欧洲精品天堂一级| 亚洲精品国精品久久99热一| 免费成人av| 欧美第一黄网免费网站| 亚洲国产经典视频| 美女久久一区| 亚洲国产天堂久久综合网| 亚洲激情av| 欧美精品18videos性欧美| 亚洲区免费影片| 亚洲午夜电影| 国产女优一区| 久久精品视频一| 欧美fxxxxxx另类| 亚洲精品久久久久久久久久久久久 | 亚洲午夜高清视频| 亚欧成人在线| 国模精品一区二区三区| 久久精品伊人| 亚洲国产婷婷| 亚洲欧美日韩专区| 国产一区二区三区在线观看精品| 久久精品国产第一区二区三区最新章节| 久久男人资源视频| 亚洲二区在线观看| 欧美—级高清免费播放| 亚洲一区自拍| 免费成人毛片| 一区二区三区欧美日韩| 国产日韩欧美视频在线| 麻豆91精品| 在线性视频日韩欧美| 久久午夜av| 亚洲伦理在线| 国产精品一卡| 欧美jizzhd精品欧美巨大免费| 日韩视频精品在线| 玖玖玖国产精品| 一区二区欧美日韩| 狠狠狠色丁香婷婷综合久久五月| 欧美高清一区二区| 午夜精品一区二区在线观看 | 久久福利精品| 亚洲黄一区二区三区| 国产精品久久精品日日| 久久精品视频va| 一区二区三区国产在线| 欧美激情bt| 久久精品视频亚洲| 一区二区三区久久精品| 在线电影院国产精品| 国产精品乱码一区二区三区| 毛片基地黄久久久久久天堂| 亚洲午夜精品一区二区| 亚洲电影欧美电影有声小说| 久久精品99无色码中文字幕| 99国产一区| 亚洲风情亚aⅴ在线发布| 国产精品制服诱惑| 欧美日韩国产在线播放| 免费成人激情视频| 欧美一级视频免费在线观看| 艳妇臀荡乳欲伦亚洲一区| 亚洲春色另类小说| 欧美国产综合一区二区| 性欧美videos另类喷潮| 一区二区三区日韩在线观看| 亚洲国产精品视频一区| 美国成人毛片| 久久婷婷蜜乳一本欲蜜臀| 欧美一区二区三区在线视频| 亚洲视频第一页| 日韩一级欧洲| 日韩亚洲在线| 99riav国产精品| 亚洲精品在线观看视频| 91久久精品国产91久久| 亚洲成色精品| 亚洲国产精品成人综合色在线婷婷| 国产中文一区| 影音先锋日韩资源| 精品动漫av| 在线精品高清中文字幕| 亚洲国产导航| 亚洲日本乱码在线观看| 亚洲每日更新| 亚洲天堂偷拍| 午夜精品国产精品大乳美女| 午夜伦欧美伦电影理论片| 亚洲欧美日韩国产精品| 午夜视频在线观看一区二区三区| 性亚洲最疯狂xxxx高清| 欧美制服丝袜| 久久人人97超碰精品888| 裸体素人女欧美日韩| 欧美激情黄色片| 日韩一区二区精品葵司在线| 中日韩高清电影网| 亚洲欧美日韩成人| 久久精品一区二区三区不卡牛牛 | 99re热精品| 亚洲专区欧美专区| 久久久久九九视频| 欧美不卡视频一区| 欧美视频二区| 国产有码在线一区二区视频| 伊人成年综合电影网| 亚洲理伦电影| 午夜精品一区二区三区在线| 久久在线观看视频| 亚洲人屁股眼子交8| 中文精品视频一区二区在线观看| 午夜精品亚洲| 欧美精品1区| 国产亚洲欧洲997久久综合| 亚洲第一福利在线观看| 亚洲一区二区高清| 久久这里只有精品视频首页| 日韩视频专区| 久久国产一区| 欧美日韩喷水| 激情综合网址| 亚洲欧美成人综合| 欧美激情视频在线播放| 亚洲欧美另类久久久精品2019| 免费中文字幕日韩欧美| 国产精品免费网站在线观看| 亚洲国产精品va在线观看黑人| 亚洲欧美另类中文字幕| 亚洲第一中文字幕| 性欧美xxxx大乳国产app| 欧美乱在线观看| 在线观看一区视频| 欧美在线999| 一区二区三区精品在线| 免费成人黄色片| 狠狠久久婷婷| 欧美在线免费| 99国产精品国产精品久久|