…or create a new repository on the command line echo "# test-git" >> README.md
- git init
- git add README.md
- git commit -m "first commit"
- git branch -M main
- git remote add origin https://github.com/bhrl/test-git.git
- git push -u origin main
…or push an existing repository from the command line
- git remote add origin https://github.com/bhrl/test-git.git
- git branch -M main
- git push -u origin main
…or import code from another repository You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
..edit isi dari branch baru
-
git checkout -b new_branch
-
git status
-
git add new_file.txt
-
git status
-
git commit -m "tambah new_file.txt coi"
-
git push -u origin new_branch
-
Once you push the changes to your repo, the Compare & pull request button will appear in GitHub
-
Click it and you'll be taken to this screen:
-
Open a pull request by clicking the Create pull request button. This allows the repo's maintainers to review your contribution. From here, they can merge it if it is good, or they may ask you to make some changes