ヒント: 既存のファイルを GitHub Enterprise Web サイトから追加することもできます。
この手順は、以下が済んでいることを前提としています。
- GitHub Enterpriseにリポジトリが作成されているか、他の人が所有する、あなたがコントリビュートしたい既存のリポジトリがあること。
- そのリポジトリを手元のコンピュータにクローンしていること。
警告: リモートリポジトリには、決してセンシティブな情報をgit add、commit、pushしないでください。 センシティブな情報には以下が含まれますが、以下に限定はされません。
- パスワード
- SSH keys
- AWSアクセスキー
- APIキー
- クレジットカード番号
- PIN番号
詳細は「センシティブなデータをリポジトリから削除する」を参照してください。
- On your computer, move the file you'd like to upload to
GitHub Enterprise into the local directory that was created when you cloned the repository. 1. ターミナルターミナルGit Bashを開いてください。 1. ワーキングディレクトリをローカルのリポジトリに変更します。 1. コミットに備えてローカルリポジトリにファイルをステージングしてください。
$ git add .
# ファイルをローカルリポジトリに追加し、コミットするためにステージします。 ファイルをステージから降ろすには、'git reset HEAD YOUR-FILE' を使います。
- ローカルリポジトリでステージングしたファイルをコミットしてください。
$ git commit -m "Add existing file" # 追跡された変更をコミットし、リモートリポジトリへのプッシュに備えます。 このコミットを削除してファイルを変更するには、'git reset --soft HEAD~1' を使い、コミットしてからファイルを再度追加してください。 - your GitHub Enterprise Server instance へ、ローカルリポジトリの変更をプッシュします。
$ git push origin your-branch

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
