Skip to content

Instantly share code, notes, and snippets.

View danascheider's full-sized avatar

Dana Scheider danascheider

View GitHub Profile
@danascheider
danascheider / git-status-output
Created May 19, 2021 22:19
git status output
On branch master
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: hello_world.rb
@danascheider
danascheider / git-branch-d-output
Created May 19, 2021 21:50
git branch d unmerged branch
error: The branch 'unmerged-branch' is not fully merged.
If you are sure you want to delete it, run 'git branch -D unmerged-branch'.
@danascheider
danascheider / git-branch-d-output
Created May 19, 2021 21:48
git delete branch output
Deleted branch allow-user-input (was 5f38523).
@danascheider
danascheider / git-merge-output
Created May 19, 2021 21:39
git merge output
Updating 106b5ea..5f38523
Fast-forward
hello_world.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@danascheider
danascheider / git-commit-output
Created May 19, 2021 07:05
git commit output
[allow-user-input 5f38523] Accept name as user input
1 file changed, 3 insertions(+), 1 deletion(-)
@danascheider
danascheider / git-diff-output
Created May 19, 2021 06:49
git diff output
diff --git a/hello_world.rb b/hello_world.rb
index 733c205..7146b79 100644
--- a/hello_world.rb
+++ b/hello_world.rb
@@ -1 +1,3 @@
-puts 'Hello World!'
+puts 'Please enter a name:'
+name = gets
+puts 'Hello ' + name + '!'
(END)
@danascheider
danascheider / git-status-output
Created May 19, 2021 06:45
git status output
On branch allow-user-input
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: hello_world.rb
no changes added to commit (use "git add" and/or "git commit -a")
@danascheider
danascheider / hello_world.rb
Last active May 19, 2021 06:40
Ruby hello world
puts 'Please enter a name:'
name = gets
puts 'Hello ' + name + '!'
@danascheider
danascheider / git-branch-output
Created May 19, 2021 06:27
git branch output
* master
my-branch-1
my-branch-2
[master (root-commit) 106b5ea] Print 'Hello World' to the console
1 file changed, 1 insertion(+)
create mode 100644 hello_world.rb