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

隨筆 - 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>
            亚洲欧美日韩在线一区| 99精品欧美| 久久久精品国产免大香伊| 亚洲午夜在线观看视频在线| 国产精品福利影院| 亚洲免费网址| 性欧美办公室18xxxxhd| 国语自产偷拍精品视频偷| 久久综合网色—综合色88| 久久综合九色欧美综合狠狠| 亚洲区在线播放| 最近中文字幕mv在线一区二区三区四区| 榴莲视频成人在线观看| 99国产精品久久久久久久| aⅴ色国产欧美| 国产偷国产偷精品高清尤物| 麻豆精品视频在线观看视频| 女主播福利一区| 亚洲一区二区视频在线观看| 亚洲男女毛片无遮挡| 1024欧美极品| 日韩亚洲欧美成人| 国产亚洲一区二区三区在线观看| 嫩草影视亚洲| 国产精品久久一区二区三区| 久久精品人人做人人综合| 欧美aa国产视频| 性欧美1819性猛交| 免费一级欧美片在线播放| 亚洲视频国产视频| 久久久久久久高潮| 亚洲一区免费在线观看| 久久午夜激情| 亚洲欧美日韩精品久久奇米色影视| 久久精品99国产精品酒店日本| 日韩午夜剧场| 久久国产精品久久w女人spa| 亚洲视频欧美在线| 久久亚洲国产成人| 销魂美女一区二区三区视频在线| 美乳少妇欧美精品| 久久久噜噜噜久久狠狠50岁| 欧美日韩国产一级片| 欧美二区视频| 国产一区在线看| 夜夜夜精品看看| 亚洲精品国产精品国自产在线| 欧美一区二区黄色| 亚洲午夜久久久| 欧美精品三级日韩久久| 老司机免费视频一区二区| 国产精品久久久久一区| 亚洲欧洲久久| 亚洲国产欧美在线人成| 久久精品国产精品| 久久精品电影| 国产精品男gay被猛男狂揉视频| 亚洲国产精品一区二区第一页| 韩国成人福利片在线播放| 亚洲一区中文| 午夜精品久久99蜜桃的功能介绍| 欧美精品一区三区| 亚洲经典自拍| 亚洲精品国产精品国自产观看浪潮| 久久久久久97三级| 久久只有精品| 红桃视频亚洲| 久久综合图片| 欧美成人精品h版在线观看| 国内免费精品永久在线视频| 欧美影院成人| 久久―日本道色综合久久| 国产在线播放一区二区三区| 性欧美video另类hd性玩具| 欧美在线视频网站| 国产一区二区三区的电影| 久久成人国产精品| 老牛国产精品一区的观看方式| 伊人精品在线| 欧美a级片网| 日韩视频免费看| 午夜精品网站| 国产日韩一区欧美| 久久久人人人| 91久久精品美女高潮| 一二美女精品欧洲| 国产精品视频一二三| 性欧美在线看片a免费观看| 久久蜜桃精品| 亚洲精品影视在线观看| 欧美午夜理伦三级在线观看| 亚洲制服少妇| 欧美成人精品一区二区三区| 日韩亚洲欧美一区| 国产乱码精品一区二区三区av| 久久国产婷婷国产香蕉| 亚洲国产美女精品久久久久∴| 亚洲午夜av| 国内久久婷婷综合| 欧美人与禽猛交乱配视频| 亚洲男女毛片无遮挡| 麻豆国产精品va在线观看不卡| 亚洲伦理精品| 国产亚洲在线观看| 欧美福利精品| 欧美一级夜夜爽| 亚洲精品久久久久久久久久久久| 午夜亚洲福利| 亚洲精品久久7777| 国产欧美亚洲精品| 欧美成人免费网| 午夜精品成人在线| 亚洲精品小视频在线观看| 欧美一级黄色网| 亚洲精品资源| 黄色亚洲免费| 国产精品久久久久一区二区三区| 久久精品一二三区| 亚洲图片欧美日产| 欧美激情中文不卡| 久久九九99视频| 亚洲午夜免费福利视频| 在线看成人片| 国产精品私拍pans大尺度在线| 女女同性精品视频| 午夜一区在线| 亚洲性感美女99在线| 亚洲大片av| 免费观看成人网| 久久电影一区| 午夜一区在线| 亚洲少妇在线| 日韩午夜精品视频| 亚洲精品乱码久久久久久蜜桃麻豆 | 欧美激情久久久久| 久久精品视频在线看| 亚洲欧美日韩成人| 亚洲无亚洲人成网站77777| 亚洲美女视频网| 亚洲国产黄色| 亚洲国产视频一区| 永久久久久久| 亚洲高清视频一区| 在线日韩日本国产亚洲| 激情校园亚洲| 在线观看成人av电影| 1024日韩| 亚洲国产一二三| 亚洲欧洲免费视频| 亚洲人成人一区二区在线观看| 亚洲福利视频免费观看| 亚洲国产高清自拍| 亚洲精品少妇| 一本一本久久| 亚洲一区自拍| 久久av资源网| 久久噜噜噜精品国产亚洲综合| 久久人人97超碰精品888| 久久天堂精品| 亚洲福利视频免费观看| 亚洲福利视频网站| 日韩一二在线观看| 亚洲一区二区3| 欧美一级在线亚洲天堂| 久久网站免费| 欧美人与性禽动交情品| 国产精品美女一区二区在线观看| 国产精品欧美日韩久久| 国产亚洲第一区| 136国产福利精品导航网址| 91久久精品www人人做人人爽| 日韩一区二区精品视频| 午夜精品一区二区三区在线| 久久人人爽爽爽人久久久| 亚洲国产欧美不卡在线观看| 亚洲久久在线| 欧美在线观看网站| 欧美jjzz| 国产精品专区h在线观看| 在线观看亚洲| 亚洲午夜性刺激影院| 久久五月激情| 日韩视频一区二区三区| 欧美一区二区在线免费观看| 欧美电影在线播放| 国产日产欧产精品推荐色| 亚洲国产裸拍裸体视频在线观看乱了中文 | 欧美影院精品一区| 欧美成人精品一区二区| 国产欧美91| 亚洲精品视频二区| 久久精品首页| 中文在线一区| 欧美高清影院| 国模套图日韩精品一区二区| 中国女人久久久| 美女久久网站| 午夜天堂精品久久久久| 欧美日韩国产高清视频| 在线欧美福利|