forked from bregman-arie/devops-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abregman
committed
Jul 8, 2022
1 parent
e0f7a88
commit 65b0e6f
Showing
5 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# GitHub | ||
|
||
## Common Issues | ||
|
||
* 'can't sync because main is not tracking [PROJECT NAME]' | ||
|
||
This happens the branch is no longer tracking main from upstream. Can be fixed with this command: `git push --set-upstream origin main`. | ||
|
||
## Cheat Sheet | ||
|
||
### Repository | ||
|
||
* Clone repository: `gh clone <REPO NAME>` | ||
* Sync your fork from source repo: `gh repo sync --source <USERNAME>/<REPONAME>` | ||
|
||
### Pull Requests | ||
|
||
* Create PR: `gh pr create --title "Some Pull Request ;)` | ||
* List PRs: `gh pr list` | ||
* Change to PR (aka checkout): `gh pr checkout <PR NUMBER>` | ||
* Update PR: `git push` | ||
|
||
### CI | ||
|
||
* List builds/workflow runs: `gh run list` | ||
|
||
### Rebase | ||
|
||
* Rebase current branch commits on top of latest changes in main branch: `git rebase origin/main` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters