untung99.homes: Git Staging Environment
Untung99 menawarkan beragam permainan yang menarik, termasuk slot online, poker, roulette, blackjack, dan taruhan olahraga langsung. Dengan koleksi permainan yang lengkap dan terus diperbarui, pemain memiliki banyak pilihan untuk menjaga kegembiraan mereka. Selain itu, Untung99 juga menyediakan bonus dan promosi menarik yang meningkatkan peluang kemenangan dan memberikan nilai tambah kepada pemain.
Berikut adalah artikel atau berita tentang Harian untung99.homes dengan judul untung99.homes: Git Staging Environment yang telah tayang di untung99.homes terimakasih telah menyimak. Bila ada masukan atau komplain mengenai artikel berikut silahkan hubungi email kami di koresponden@untung99.homes, Terimakasih.
One of the core functions of Git is the concepts of the Staging Environment, and the Commit.
As you are working, you may be adding, editing and removing files. But
whenever you hit a milestone or finish a part of the work, you should add the
files to a Staging Environment.
Staged files are files that are ready to be
committed to the
repository you are working on. You will learn more about
commit
shortly.
For now, we are done working with index.html
.
So we can add it to the Staging Environment:
Example
git add index.html
The file should be Staged. Let’s check the status::
Example
git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: index.html
Now the file has been added to the Staging Environment.
Git Add More than One File
You can also stage more than one file at a time. Let’s add 2 more files to our working folder. Use the text editor again.
A README.md
file that describes the repository (recommended for all
repositories):
Example
# hello-world
Hello World repository for Git tutorial
This is an
example repository for the Git tutoial on https://www.w3schools.com
This repository is built step by step in the tutorial.
A basic external style sheet (bluestyle.css
):
Example
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
And update index.html
to include the stylesheet:
Example
This is
the first file in my new Git Repo.
Now add all files in the current directory to the Staging Environment:
Using --all
instead of individual filenames
will stage
all changes (new, modified, and deleted) files.
Example
git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: README.md
new file: bluestyle.css
new file: index.html
Now all 3 files are added to the Staging Environment, and we are ready to do
our first commit
.
Note: The shorthand command for
is
git add --allgit add -A