久しぶりに使ったら、Gitの使い方まるまる忘れた。
初心に戻って。
http://www.backlog.jp/git-guide/intro/intro4_2.html
クリーン・リーダブルなコードしか受け入れられなかったのに、Webの開発を始めてだんだんと負債コードに埋もれることに慣れてきました。
Ruby On Railsを使ったWeb開発、その他プログラミングHackなどをまとめてます。コメントやお問合せはいつでもお待ちしております。
略歴は、
こちら
お仕事の依頼などはこちらにどうぞ。 https://murano-web.blogspot.com/
完全無欠コーヒー2年継続中 https://bulletproof88.blogspot.com/
Translate
2015/12/27
2015/10/08
Githubのリポジトリを整理する
コード管理するのに全てをGithub使っていたら、リポジトリが氾濫しそうなので、フォルダ分けのようなことができないかやってみた。
http://kazu.tv/blog/2015/06/22/transfer-github-repository-to-organization/
Orgnizationを使った。
方法:
https://help.github.com/articles/transferring-a-repository/
http://kazu.tv/blog/2015/06/22/transfer-github-repository-to-organization/
Orgnizationを使った。
方法:
https://help.github.com/articles/transferring-a-repository/
To transfer a repository to another user account:
- On GitHub, navigate to the main page of the repository.
In the repository's right sidebar, click Settings.
Click Transfer.- Read the warnings and enter the repository name to confirm that you've done so.
Type the name of the new owner and click I understand, transfer th
2015/10/03
Gitで1つのファイルだけ戻す
http://konbu13.hatenablog.com/entry/2014/12/01/070255
git log ファイルパス git checkout ad9772b1dbcf4e3d7f658305c7184d673fc32637 ファイルパス
2015/10/02
新規にGitレポジトリの始め方
手順を整理しておく。
$ mkdir tutorial
$ cd tutorial
$ git init
$ git remote add origin https://[your_space_id].backlog.jp/git/[your_project_key]/tutorial.git
git pull origin master
Username: <ユーザ名>
Password: <パスワード>
$ mkdir tutorial
$ cd tutorial
$ git init
$ git remote add origin https://[your_space_id].backlog.jp/git/[your_project_key]/tutorial.git
git pull origin master
Username: <ユーザ名>
Password: <パスワード>
Gitの初期設定
GitのCUIを使うのに初期設定が必要なのでメモ。https://git-scm.com/book/ja/v1/%E4%BD%BF%E3%81%84%E5%A7%8B%E3%82%81%E3%82%8B-%E6%9C%80%E5%88%9D%E3%81%AEGit%E3%81%AE%E6%A7%8B%E6%88%90
時々しか使わないので、忘れそう。
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
$ git config --global core.editor emacs
$ git config --list
時々しか使わないので、忘れそう。
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
$ git config --global core.editor emacs
$ git config --list
登録:
投稿 (Atom)