Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はGithubを初めて使用し、最近誰かのプロジェクトをフォークして自分の変更を加えました。今では、新しい機能やバグ修正を新しいブランチに作成するのがベスト プラクティスであることを学びました。今まではMasterで編集していました。
マスターから新しいブランチを作成し、編集したマスターを上流のコード リポジトリにもう一度置き換えるにはどうすればよいですか?
上流のレポがorigin...
origin
git branch some_feature git reset origin/master
これで、ブランチはリモート マスター ブランチの場所になり、コードはブランチ上にありますsome_feature。
some_feature