Set up git in Pycharm:
- https://www.jetbrains.com/help/pycharm/set-up-a-git-repository.html#add-remote
Set up github in Pycharm:
- There are two ways of set up. One is that you create a new repo on github and then git clone to the local file. The second way, which is more convenient, is to share your local project to Github.
Set up run/debug configuration:
- https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html
Configure project structure in Pycharm:
- https://www.jetbrains.com/help/pycharm/configuring-project-structure.html
Unversioned a file:
- https://superuser.com/questions/898165/remove-file-from-git-version-control-without-deleting-it-from-the-filesystem
Manually delete file and then manage through git:
- https://stackoverflow.com/questions/12987907/git-how-to-commit-a-manually-deleted-file
- https://stackoverflow.com/questions/492558/removing-multiple-files-from-a-git-repo-that-have-already-been-deleted-from-disk
I just realized, after you rename a script, its previous history on github will get deleted. I still found the local log in Pycharm.
Change commit message after pushing to remote:
- https://www.educative.io/edpresso/how-to-change-a-git-commit-message-after-a-push
Compare different files in Pycharm
- Use compare with clipboard to compare current file (in editor) with the copied file
Compare different versions of the same file in Pycharm
- In "Show history", at the left navigation pane, right click on one commit, and select compare with local. Local will show up on the right.