git clone [respository link]in Git Bash. Replace
[repositorylink]with the repository's link.
git branch [branchname]and then
git checkout [branchname]. Make the changes to the files that will solve the issue according to you.
./gradlew checkin your terminal of Android Studio. If the check is failing, please fix all the errors.
git add .
git commit -m "commit message"
Pull Requestsand then
New Pull Requests. Click on
compare across forks.
baseas the org's project's main branch and
compareas the branch that you just created. Fill all the details in the Pull Request template and finally post the Pull Request.
git rebase -i HEAD~xPlease note that x is the number of commits you want to merge.
git rebase -i HEAD~3opens rebase for the last three commits.
pickas the prefix. Change
sfor every commit except the topmost one. Once you've done that, you'll need to save that. You can do this by pressing
esckey and then typing
enterkey. Then you'll see a screen which shows the commit messages for the new changes that you've just done. Type
:wqagain. Now that it's saved, you'll need to again push your changes. You can do this by typing
git push --forcein the Bash.
git commit --amend.