Indra@Dra MINGW64 /c/xampp/htdocs
$ mkdir tes
Indra@Dra MINGW64 /c/xampp/htdocs
$ cd tes/
Indra@Dra MINGW64 /c/xampp/htdocs/tes
$ echo > test.php
Indra@Dra MINGW64 /c/xampp/htdocs/tes
$ git init
Initialized empty Git repository in C:/xampp/htdocs/tes/.git/
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git remote add origin https://gitlab.com/indrawulida25/Tes.git
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.php
nothing added to commit but untracked files present (use "git add" to track)
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git add tes.php
fatal: pathspec 'tes.php' did not match any files
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git commit tes.php -m 'penambahan tes'
error: pathspec 'tes.php' did not match any file(s) known to git.
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git add 'tes.php'
fatal: pathspec 'tes.php' did not match any files
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ ls -l
total 1
-rw-r--r-- 1 Indra 197121 1 Oct 26 15:15 test.php
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git add 'test.php'
warning: LF will be replaced by CRLF in test.php.
The file will have its original line endings in your working directory.
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git commit test.php -m 'tambah file'
warning: LF will be replaced by CRLF in test.php.
The file will have its original line endings in your working directory.
[master (root-commit) 4c852c5] tambah file
1 file changed, 1 insertion(+)
create mode 100644 test.php
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git push origin master
Username for 'https://gitlab.com': indrawulida25
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://gitlab.com/indrawulida25/Tes.git
* [new branch] master -> master
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git status
On branch master
nothing to commit, working tree clean
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git status
On branch master
nothing to commit, working tree clean
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git status
On branch master
nothing to commit, working tree clean
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git status
On branch master
nothing to commit, working tree clean
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$ git pull origin master
Username for 'https://gitlab.com': indrawulida25
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
From https://gitlab.com/indrawulida25/Tes
* branch master -> FETCH_HEAD
4c852c5..9f9b39b master -> origin/master
Updating 4c852c5..9f9b39b
Fast-forward
test.php | 4 ++++
1 file changed, 4 insertions(+)
Indra@Dra MINGW64 /c/xampp/htdocs/tes (master)
$
Tidak ada komentar:
Posting Komentar