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

隨筆 - 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>
            欧美一级成年大片在线观看| 午夜精品av| 亚洲激精日韩激精欧美精品| 女女同性精品视频| 在线视频免费在线观看一区二区| 日韩一级在线| 国产日韩欧美电影在线观看| 玖玖视频精品| 欧美精品一区二区视频| 亚洲欧美在线播放| 久久久久久久高潮| 99亚洲视频| 午夜精品电影| 亚洲日本中文字幕| 亚洲一区欧美一区| 最新69国产成人精品视频免费| 亚洲人成在线播放网站岛国| 国产欧美精品在线播放| 欧美激情欧美激情在线五月| 国产精品理论片| 亚洲国产高清一区| 国产人成精品一区二区三| 亚洲国产精品欧美一二99| 国产精品专区第二| 亚洲国产精品高清久久久| 国产精品一区二区久久久久| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲欧美中日韩| 蜜桃av一区二区在线观看| 午夜精品久久| 欧美精品三级| 免费欧美电影| 国产日韩欧美中文| 一本色道精品久久一区二区三区| 伊人久久亚洲影院| 午夜精品美女久久久久av福利| 亚洲精品五月天| 久久夜色撩人精品| 久久精品国产清自在天天线| 欧美日韩黄视频| 亚洲风情亚aⅴ在线发布| 黄色日韩精品| 欧美亚洲日本一区| 先锋资源久久| 国产精品老牛| 亚洲一区3d动漫同人无遮挡| 一区二区三区欧美激情| 欧美电影免费观看高清完整版| 久久先锋影音| 韩国精品一区二区三区| 久久成人精品| 久久精品视频免费| 国产午夜精品视频| 先锋亚洲精品| 久久久999精品免费| 国产精品一区久久久久| 亚洲综合国产激情另类一区| 校园激情久久| 国产欧美精品在线观看| 午夜视频在线观看一区| 久久久久久久综合狠狠综合| 国产一区二区三区四区| 久久成人免费| 欧美大片免费观看在线观看网站推荐| 狠狠色丁香婷婷综合影院| 久久国内精品自在自线400部| 久久精品一二三| 韩国av一区二区三区在线观看| 欧美主播一区二区三区美女 久久精品人 | 欧美性大战xxxxx久久久| 日韩一级在线| 性色av一区二区三区| 国产三级欧美三级| 久久在线视频在线| 亚洲国产精品电影| 亚洲一区二区三区免费观看| 国产精品欧美精品| 欧美主播一区二区三区| 亚洲大胆人体在线| 亚洲视频图片小说| 国产一区二区成人| 欧美国产一区二区| 中文在线一区| 另类成人小视频在线| 亚洲精品欧美一区二区三区| 欧美视频网址| 久久国产手机看片| 亚洲欧洲综合另类在线| 欧美一区二区在线免费观看| 狠狠入ady亚洲精品| 欧美另类在线观看| 午夜精品久久久久久久白皮肤 | 亚洲综合电影| 欧美国产日韩亚洲一区| 亚洲午夜精品久久久久久app| 国产美女精品免费电影| 免费不卡在线观看av| 亚洲香蕉视频| 欧美激情一区二区在线 | 亚洲国产天堂网精品网站| 欧美日韩一区二区三区视频| 久久高清福利视频| 99爱精品视频| 欧美激情成人在线| 欧美在线综合| 国产精品99久久久久久www| 韩国三级电影久久久久久| 欧美日韩激情小视频| 久久久另类综合| 亚洲欧美日韩视频一区| 91久久久久久久久| 免费的成人av| 久久精品国产第一区二区三区| 日韩图片一区| 亚洲国产mv| 激情综合电影网| 国产农村妇女精品一区二区| 欧美日韩调教| 欧美激情亚洲综合一区| 老司机精品导航| 久久精品天堂| 午夜精品久久| 午夜精品久久久久久久男人的天堂 | 一区二区三区精品视频| 亚洲国产欧美一区二区三区同亚洲| 国产美女搞久久| 国产精品入口夜色视频大尺度 | 免费视频一区二区三区在线观看| 午夜一区二区三区在线观看| 亚洲素人在线| 一区二区激情视频| 亚洲人体影院| 亚洲久久成人| 日韩一本二本av| 99国产精品一区| 99国产精品久久久久老师| 亚洲免费电影在线观看| 亚洲精品国产精品乱码不99按摩| 亚洲大片在线| 亚洲第一网站免费视频| 亚洲国产精品久久91精品| 亚洲电影在线免费观看| 91久久久在线| 亚洲乱码精品一二三四区日韩在线| 91久久亚洲| 制服丝袜亚洲播放| 亚洲男女自偷自拍| 欧美亚洲一区二区在线观看| 欧美专区在线| 另类成人小视频在线| 欧美日本成人| 国产精品久久久久久久浪潮网站| 国产精品久久久久久久久免费樱桃| 国产精品久久久久aaaa| 国产亚洲精品综合一区91| 很黄很黄激情成人| 91久久综合| 亚洲一区二区高清| 久久国产精品99精品国产| 免费一级欧美在线大片| 亚洲人成网站999久久久综合| av成人天堂| 久久精品毛片| 欧美日韩1区2区| 国产欧美一区二区视频| 在线国产日韩| 亚洲视频欧美视频| 久久女同互慰一区二区三区| 亚洲国产1区| 亚洲免费一级电影| 欧美不卡高清| 国产欧美精品日韩精品| 亚洲破处大片| 欧美在线视频不卡| 91久久国产精品91久久性色| 亚洲免费在线视频| 欧美激情一区二区三区| 国产亚洲高清视频| 亚洲免费精品| 久久亚洲欧洲| 亚洲一区二区在线观看视频| 久久五月天婷婷| 国产精品久久久爽爽爽麻豆色哟哟| 影音先锋亚洲视频| 午夜精品一区二区三区电影天堂 | 欧美一级久久久| 欧美精品日韩一本| 加勒比av一区二区| 香蕉久久一区二区不卡无毒影院| 免费一级欧美在线大片| 亚洲欧美日韩国产一区| 欧美日韩不卡视频| 亚洲国产欧美久久| 久久综合狠狠综合久久激情| 亚洲色图在线视频| 欧美日韩精品免费| 亚洲精品影院| 欧美福利小视频| 久久精品国产99| 国产欧美在线看|