Translate

ラベル Git の投稿を表示しています。 すべての投稿を表示
ラベル Git の投稿を表示しています。 すべての投稿を表示

2015/12/27

Git 使い方

久しぶりに使ったら、Gitの使い方まるまる忘れた。

初心に戻って。
http://www.backlog.jp/git-guide/intro/intro4_2.html

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/

To transfer a repository to another user account:

  1. On GitHub, navigate to the main page of the repository.
  2. Repository settings buttonIn the repository's right sidebar, click  Settings.
  3. Transfer buttonClick Transfer.
  4. Read the warnings and enter the repository name to confirm that you've done so.
  5. Transfer buttonType the name of the new owner and click I understand, transfer th

2015/10/03

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: <パスワード>

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