Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
# Set up a repository with one commit git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First commit" echo "function login(user) { return user.name !== ''; }" > auth.js git add auth.js git commit -q -m "Add user authentication logic" # Fix a bug, but do not stage it yet echo "function login(user) { return user.name.trim() !== ''; }" > auth.js git status git diff
On branch main
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: auth.js
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/auth.js b/auth.js
index a404cd3..be27e13 100644
--- a/auth.js
+++ b/auth.js
@@ -1 +1 @@
-function login(user) { return user.name !== ''; }
+function login(user) { return user.name.trim() !== ''; }