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

隨筆 - 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>
            久久久久久高潮国产精品视| 乱码第一页成人| 久久精品国产999大香线蕉| 久久久爽爽爽美女图片| 亚洲国产精品va在线观看黑人| 日韩视频在线观看国产| 久久国产福利| 日韩一级黄色片| 久久亚洲综合色一区二区三区| 国产精品99一区| 亚洲精品国产精品国产自| 久久久久久夜| 美女精品在线观看| 狠狠色狠色综合曰曰| 亚洲欧美精品在线| 亚洲美女黄网| 欧美11—12娇小xxxx| 狠狠色狠狠色综合系列| 欧美电影免费| 久久久综合视频| 亚洲另类一区二区| 欧美成人精品在线视频| 欧美在线日韩| 国产农村妇女精品一二区| 亚洲一区二区3| 99热精品在线观看| 欧美裸体一区二区三区| 亚洲国产精品久久久久久女王| 久久婷婷综合激情| 久久国产精品亚洲77777| 国产日韩一区二区三区在线播放| 亚洲午夜激情网页| 久久精品国产亚洲精品| 国产精品va在线播放| 久久精品盗摄| 欧美精品在线网站| 久久久夜精品| 国产精品国产福利国产秒拍| 亚洲四色影视在线观看| 一区二区三区色| 国产精品亚洲成人| 久久精品一二三| 久久久蜜桃一区二区人| 亚洲一区二区欧美| 女人香蕉久久**毛片精品| 亚洲欧美一区二区三区久久| 亚洲欧美日韩综合国产aⅴ| 国产欧美日韩精品一区| 91久久久久| 欧美手机在线| 欧美一区二区三区视频在线| 午夜精品av| 亚洲在线一区二区三区| 亚洲欧美日韩天堂| 亚洲私人影院| 欧美黄色精品| 午夜精品一区二区在线观看| 欧美激情综合在线| 亚洲欧美激情视频| 欧美另类久久久品| 亚洲黄网站黄| 最新日韩av| 亚洲欧美国产日韩中文字幕| 在线看视频不卡| 一区二区动漫| 亚洲一区二区伦理| 欧美日韩三级视频| 理论片一区二区在线| 国产九九精品| 亚洲人成人99网站| 国产日韩在线播放| 欧美亚洲综合另类| 亚洲最新中文字幕| 久久久久免费视频| 麻豆精品在线视频| 亚洲第一中文字幕| 欧美xxxx在线观看| 久久夜色精品国产| 极品裸体白嫩激情啪啪国产精品| 亚洲人成小说网站色在线| 亚洲美女av电影| 欧美绝品在线观看成人午夜影视| 亚洲日韩欧美视频一区| 亚洲一区二区视频| 国产欧美一区二区三区沐欲| 欧美一级欧美一级在线播放| 久久久久久久999| 亚洲高清二区| 欧美视频中文在线看| 亚洲欧美久久久久一区二区三区| 久久国产欧美日韩精品| 激情自拍一区| 欧美日本精品| 午夜精品偷拍| 欧美在线一级va免费观看| 韩日成人在线| 欧美好吊妞视频| 亚洲网在线观看| 亚洲欧美日本伦理| 国内精品久久久久影院 日本资源| 一本久道久久久| 久久久久网站| 亚洲午夜日本在线观看| 激情六月综合| 欧美日韩精品一区| 99精品热视频| 美女精品一区| 亚洲国产日韩欧美在线图片| 久久精品女人天堂| 日韩小视频在线观看专区| 久久激情视频| 在线午夜精品自拍| 欧美午夜久久| 欧美成人高清| 欧美一区二区网站| 99精品视频免费| 欧美激情欧美激情在线五月| **网站欧美大片在线观看| 国产精品第13页| 欧美精品乱人伦久久久久久| 欧美亚洲在线视频| 中文在线资源观看网站视频免费不卡 | 国产日韩精品视频一区二区三区| 老司机午夜精品| 亚洲国产精品成人精品| 久久精品噜噜噜成人av农村| 夜夜爽99久久国产综合精品女不卡| 国产日韩久久| 国产精品免费观看在线| 久久福利一区| 亚洲一区二区成人在线观看| 久久成人精品视频| 亚洲午夜高清视频| 亚洲精品综合精品自拍| ●精品国产综合乱码久久久久| 国产毛片一区| 国产精品一区二区久久久| 欧美久久久久久久久久| 米奇777超碰欧美日韩亚洲| 久久激情视频久久| 久久er精品视频| 欧美在线国产| 欧美中文字幕在线| 久久成人一区| 久久精品日韩欧美| 久久久久国产精品人| 久久国产精品99精品国产| 新67194成人永久网站| 亚洲在线日韩| 亚洲欧美日韩中文在线制服| 亚洲午夜视频在线观看| 亚洲香蕉网站| 亚洲欧美国产另类| 欧美一区三区二区在线观看| 欧美一级网站| 久久精品国产一区二区三区免费看| 欧美一区二区三区在线| 久久久久久夜| 欧美国产极速在线| 欧美日韩精品免费观看视一区二区| 欧美日韩国产123| 国产精品扒开腿爽爽爽视频| 国产精品亚发布| 黑人巨大精品欧美一区二区| 激情久久五月天| 亚洲免费观看| 午夜日韩在线| 欧美成人午夜激情视频| 91久久精品国产91性色| 一区二区三区四区五区精品视频| 亚洲免费一级电影| 久久成人免费电影| 欧美精品日韩| 国产精品日本欧美一区二区三区| 国产亚洲免费的视频看| 国产精品视频不卡| 国内揄拍国内精品少妇国语| 亚洲国产高清自拍| 亚洲一区二区三区午夜| 久久精品夜色噜噜亚洲aⅴ| 欧美xx69| 亚洲一区久久| 美日韩精品免费观看视频| 欧美日韩国语| 激情五月婷婷综合| 一本色道久久综合亚洲精品不卡| 欧美一区二区视频在线观看2020 | 欧美亚洲系列| 亚洲欧美一区二区在线观看| 久久人91精品久久久久久不卡| 亚洲国产免费| 久久er99精品| 欧美日韩在线一区二区三区| 红桃视频国产一区| 亚洲一区二区av电影| 欧美jizz19性欧美| 亚洲尤物影院| 欧美精品久久久久久| 黄网站色欧美视频| 午夜精品久久久久久久久久久久 |