https://github.com/jftuga/universe
A group of my various scripts, see the Manifest (below)
https://github.com/jftuga/universe
Last synced: 3 months ago
JSON representation
A group of my various scripts, see the Manifest (below)
- Host: GitHub
- URL: https://github.com/jftuga/universe
- Owner: jftuga
- Created: 2015-09-10T18:19:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-09-26T12:56:10.000Z (9 months ago)
- Last Synced: 2025-09-26T14:44:47.399Z (9 months ago)
- Language: Python
- Homepage:
- Size: 58.6 MB
- Stars: 39
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: change_dhcp_scope.py
Awesome Lists containing this project
README
# Universe
[Universe - Manifest](https://rawgit.com/jftuga/universe/master/gh-manifest.html)
## Add New Files
- cd universe
- git add * # (or other file mask) (you can also use 'git add --all')
- git commit -am "initial commit" # or for one file: git commit filename -m "my comment"
- git push or to push only one branch: git push origin BranchName
## Remove Files
- git rm file.xyz # this also deletes the file from the local file system!
- git commit -am "rm"
- git push
## Revert The Last Change
- try this first: https://stackoverflow.com/questions/927358/how-do-you-undo-the-last-commit
- or...
- git revert HEAD
- git push
- see also: https://www.atlassian.com/git/tutorials/undoing-changes/git-revert/
## Delete A Branch
- https://help.github.com/articles/viewing-branches-in-your-repository/
- click on the Branch Tab
- On the subsequent click the trash can icon next to the branch you wish to remove
## Review Operations
- git log
- git log --pretty=oneline
## Tagging
- commit & push your change
- git log --pretty=oneline # to find the commit version checksum
- git tag -a v1.01 111aabb...bb222 -m "example.py v1.01"
- git push origin --tags
- see also: https://git-scm.com/book/en/v2/Git-Basics-Tagging
## Amend a commit message
- https://stackoverflow.com/questions/179123/edit-an-incorrect-commit-message-in-git
## Overwrite local change with version from repo
- git checkout HEAD^ file/to/change
- git pull
- see also: http://stackoverflow.com/a/14319943/452281