Chantori Blog

Medical Physics / Monte Carlo Simulation / Medical Image Processing

GitHub始めました

GitHubを、自分のコードのバックアップをとったり、Dual BootしてるWindowsLinux Ubuntu間でコードをシェアするために、使おうと思います。

備忘録として、push(自分のコードを自分のアカウントのページにアップロード)する方法を残しておきます。

                          f:id:chantori:20160913160825j:plain

 

  1. WindowsエクスプローラーのGitHubディレクトリを作成し、中にアップロードしたいコードがあるディレクトリ(C://¥Users¥hogehoge)を作成
  2. $ cd C://¥Users¥hogehoge
  3. Git Shellを起動(僕の場合はGitHub Desktop左側のサイドバーを右クリック)
  4. git remote
  5. git remote rm origin
  6. git remote
  7. GitHubのサイト上で新しいRepositoryを作成。URLをコピー(https://hogehoge
  8. git commit -m “何か残したいコメント
  9. git remote add origin https://hogehoge
  10. git push origin master

 

でできるはず。