20 Working with branches
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: $ 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...
various remote repository hosting sites: GitHub BitBucket Gitlab Command Explanation git clone URL Git clone is used to clone a remote repository...
Command $ cd health-checks/ $ git remote show origin Code output * remote origin Fetch URL: https://github.com/artwalker/health-checks.git Push URL: https://github.com/artwalker/health-chec...
Command $ cd health-checks/ $ git remote -v Code output origin https://github.com/artwalker/health-checks.git (fetch) origin https://github.com/artwalker/health-checks.git (push) Command $ git...
Command $ git pull Code output remote: Enumerating objects: 8, done. remote: Counting objects: 100% (8/8), done. remote: Compressing objects: 100% (5/5), done. Unpacking objects: 100% (6/6), do...