LoginSignup
7
4

GitHub, bitbucket 事始め&名古屋のIoTは名古屋のOSで

Last updated at Posted at 2018-07-07

Github, bitbucketを使い始めてから何年か経つ

なかなか操作方法を習得できず、誤操作ばかりして、色々迷惑をかけている。

今般、Githubに掲載している事業に対して、作業診断を試行することになった。

そこで、Github, bitbucketの操作方法、考え方、誤操作の復帰方法などを整理しておきたい。

また、Githubへの記載事項、記載方法で、制約・仕様、設計・試験をどこに何を記載すると良いかを検討する。

github

Githubを知る【Mac】 (´・ω・`)←初心者
https://qiita.com/Pana/items/8c6cda5a2bcbf2525c6e

はじめての開発【GitHub】
https://qiita.com/hak_chami/items/4f46456ea25d7f9e3010

【Git】基本コマンド
https://qiita.com/konweb/items/621722f67fdd8f86a017

Gitの使い方メモ
https://qiita.com/__init__/items/4729037bef5138155936

gitコマンドの使用手順についてのメモ
https://qiita.com/taoki11111/items/917fc65ed5389098c3f8

github
https://qiita.com/icelandnono/items/a19b92a2c3a14f478e6b

githubの初期設定
https://qiita.com/iiynuu_jp102/items/9f7b202aff0ec71832f1

github で 空のプルリクエストを作る手順
https://qiita.com/kasei-san/items/ef2e9abbea043b7471f1

github 版本的回溯
https://qiita.com/kakeru_34/items/3a9bbbda5a3ca057115a

Gitチートシート
https://qiita.com/ktarow/items/1d8c8ae698a88b1d6f0f

Gitにpush
https://qiita.com/gkumi5638/items/26f1b8dfe129869d238e

ブランチ切って更新してマージするまでの流れ

tigとgit(初心者、初学者向け)
https://qiita.com/chao____/items/47c42c7accff45f08e6e

git reset 解説
https://qiita.com/forest1/items/f7c821565a7a7d64d60f

GitHubでWebページを公開する方法
https://qiita.com/Yuki_Yamashina/items/5d8208c450195b65344c

windows環境の git で改行コードの自動変換に注意
https://qiita.com/yokoh9/items/1ec8099696ade0c1f36e

githubとsourcetree連携(画像あり、初めての方向け)
https://qiita.com/tomoharutsutsumi/items/b333ae7866c17c3134bb

GitHubでマージ済のプルリクをrevertした後に引き続きrevertされたブランチで作業を続行したい時
https://qiita.com/bigplants/items/3d1d3ada97d0c86d2548

gitHubでssh接続する手順~公開鍵・秘密鍵の生成から~
https://qiita.com/shizuma/items/2b2f873a0034839e47ce

##githubエラー
gitのメモ fatal: remote origin already exists.
https://qiita.com/hatorijobs/items/1cae1946656ece954c63

gitをWindowsのコマンドラインで叩いてエディタが無いと言われたとき
https://qiita.com/t_mitarai/items/a240f7c44b3986b01fec

git pushがrejectされたときの解決方法URLまとめ
https://qiita.com/kaw/items/767deb773223fe013ada

Githubのsshで何故かPermission denied (publickey)となる場合の設定メモ
https://qiita.com/koara-local/items/9cc615be6b4b60f5654d

[GitHub] 公開鍵登録の際に、Permission denied (publickey). が出続ける場合の対応 (vagrantからsshする場合の注意も)
https://qiita.com/colorrabbit/items/6c3e96c394bb0f753ea0

githubに接続できない時の対処法
https://qiita.com/nyanchu/items/32d65c4c36315b876d38

bit bucket

コマンド

cloneを押し
hg https://kaizennagoya@bitbucket.org/yoshihiro503/proofcafe
###事例1

install hg

$ hg clone https://kaizennagoya@bitbucket.org/yoshihiro503/proofcafe
-bash: hg: command not found
$ brew install hg

hg clone

$ hg clone https://kaizennagoya@bitbucket.org/yoshihiro503/proofcafe
destination directory: proofcafe
requesting all changes
adding changesets
adding manifests
adding file changes
added 34 changesets with 48 changes to 16 files
new changesets 57cc9f722cef:95f9b79b7fc1
updating to branch default

###事例2
https://kaizennagoya@bitbucket.org/toppers_ssp/toppers_ssp.git

$ git clone https://kaizennagoya@bitbucket.org/toppers_ssp/toppers_ssp.git
Cloning into 'toppers_ssp'...
Password for 'https://kaizennagoya@bitbucket.org': 
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://kaizennagoya@bitbucket.org/toppers_ssp/toppers_ssp.git/'

####renew passwd

$ git add toppers_ssp
$ git commit toppers_tsp -m "first"
error: pathspec 'toppers_tsp' did not match any file(s) known to git.
$ git commit toppers_ssp -m "first"
[master e8e3c6e] first
 Committer: OgawaKiyoshi <ogawakiyoshi@OgawaKiyoshi-no-MacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 642 files changed, 489682 insertions(+)
...

$ git push origin master
Counting objects: 765, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (663/663), done.
Writing objects: 100% (765/765), 6.90 MiB | 1.34 MiB/s, done.
Total 765 (delta 329), reused 0 (delta 0)
remote: Resolving deltas: 100% (329/329), done.
To https://bitbucket.org/toppers_ssp/toppers_ssp.git
   e5ae5ba..e8e3c6e  master -> master

導入編

【tutorial】Bitbucketのアカウントを作成
https://qiita.com/d778980/items/31aa6cafc8d676109444

Bitbucketの導入手順
https://qiita.com/yukihigasi/items/a788039801bee07e55a1

Bitbucketでチームを作成し、メンバーを追加する。
https://qiita.com/happy41111/items/12b231f12ac23aa51623

操作編

[Bitbucket]gitコマンドでBitbucketを操作する 〜基本編〜
https://qiita.com/yyosuke/items/986dabc9906674e2ea97

Bitbucket+Trello+Slackを連携してカード作ったり通知したり
https://qiita.com/daisuke1120/items/c8f1db41545081ac3cbc

bitbucketのAPIを使って、ダウンロードファイルの作成/取得を行う
https://qiita.com/k-yamada-github/items/1c7422f1c2c0e2d6fdb9

bitbucketへのpush時に毎回パスワード入力しなくて済むようにする
https://qiita.com/chiharuisaki/items/e42b010b432aa0a0156e

ローカルの git リポジトリを Bitbucket に追加する手順
https://qiita.com/monta31538/items/02bfcf0d8404b9a5754a

意外と知られていない、BitbucketでもGithub PagesのようにWebページを公開 :)
https://qiita.com/n0bisuke/items/8576456f2e329cb1df45

新規作成アプリをBitbucketにあげる
https://qiita.com/fkana/items/1db89111dab786fe0c85

既存のプロジェクトをBitBucketに上げるには?
https://qiita.com/fmaeyama/items/675f3b3f0c5e085c2766

sourcetree

【tutorial】既存プロジェクトをGit管理に追加→Bitbucketにプッシュ(GitBash)
https://qiita.com/d778980/items/06a7653f58d8b94c0674

sourcetreeをmacで使う際のsshキーの設定
https://qiita.com/nnmr/items/09aadb6107a1a5eb6188

Bitbucket-owner譲渡-
https://qiita.com/suzukiriho0107/items/424aeff2ab19ec576cef

参考資料(reference)

わかばちゃんと学ぶ Git使い方入門 湊川あい
https://www.amazon.co.jp/dp/4863542178/

Gitが、おもしろいほどわかる基本の使い方33〈バージョン管理、SourceTree、Bitbucket〉大串肇
https://www.amazon.co.jp/dp/4844365010/

独習Git リック・ウマリ
https://www.amazon.co.jp/dp/4798144614/

Gitによるバージョン管理 岩松信洋
https://www.amazon.co.jp/dp/4274068641/

わかる-Git 冨永和人
https://www.amazon.co.jp/dp/B00IAOPGDO/

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>

文書履歴(document history)

ver. 0.10 初稿 20180708
ver. 0.11 bitbucket追記 20180709
ver. 0.12 項目追記 20180710
ver. 0.13 参考文献追記 20180712
ver. 0.14 ありがとう追記 20230413

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4