16 Rollbacks
Command: $ cd scripts $ vim all_checks.py File with code: #!/usr/bin/env python3 import os import sys def check_reboot(): """Returns True if the computer has a pending reboot.""" retur...
Command: $ cd scripts $ vim all_checks.py File with code: #!/usr/bin/env python3 import os import sys def check_reboot(): """Returns True if the computer has a pending reboot.""" retur...
Command: $ cd checks $ git log -1 Code output: commit abb063210c1f011b0d6470a4c5f1d8f672edd3ef (HEAD -> master) Author: artwalker <artwalker@example.com> Date: Mon Jul 15 22:20:45 202...
When writing and committing code, making mistakes is a common occurrence. Thankfully, there are multiple ways for you to revert or undo your mistakes. Take a look at the helpful commands below. co...
Command: $ cd checks/ $ git branch Code output: * master Command: $ git branch new-feature $ git branch Code output: * master New-feature Command: $ git checkout new-feature Code output: Sw...
Command: $ cd checks $ git status Code output: On branch even-better-feature nothing to commit, working tree clean Command: $ ls -l Code output: total 8 -rw-rw-r-- 1 user user 659 Jul 17 00:02...
Command: $ git branch Code output: Even-better-feature * master Command: $ git merge even-better-feature Code output: Updating 7d1de19..4361880 Fast-forward free-memory.py | 6 ++++++ ...
Command: $ vim free_memory.py Modify code #!/usr/bin/env python3 def main(): """Checks if there's enough free memory in the computer.""" main() Command: $ git commit -a -m 'Add comment to...
Command Explanation & link git branch can be used to list, create, or delete branches. git branch can be used to create a new branch in ...
Terms and definitions Branch: A pointer to a particular commit, representing an independent line of development in a project Commit ID: An identifier next to the word commit in the log Fast-forward...
Command $ git clone https://github.com/artwalker/health-checks.git Code output Cloning into 'health-checks'... Username for 'https://github.com': redquinoa Password for 'https://redquinoa@github...