xxxxxxxxxx
$ git status
On branch main
Your branch is up-to-date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
modified: file1.txt
modified: file2.js
Untracked files:
(use "git add <file>..." to include in what will be committed)
newfile.py
no changes added to commit (use "git add" and/or "git commit -a")
xxxxxxxxxx
git status # To see all changed files
git add -A # add all changed files
git commit -m 'Message'
git push origin <branch-name>
xxxxxxxxxx
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
xxxxxxxxxx
$pluckedRings = $ringsCollection->pluck('id');
dd($pluckedRings->values());
xxxxxxxxxx
# Edit hello.py
git status
# hello.py is listed under "Changes not staged for commit"
git add hello.py
git status
# hello.py is listed under "Changes to be committed"
git commit
git status
# nothing to commit (working directory clean)
laravel collection to array without keys
xxxxxxxxxx
$pluckedRingsArr = $ringsCollection->pluck('id')->values()->toArray();