When you want to develop your application efficiently with your team work. Git is the best way and it brings plenty of advantageous when build your application. Here, we would make local repository and use some command git that would be used frequently for your further or other project.
Repository contains metadata file that have complete history and full revision about everything that happen to your git working directory. Metadata can reduce the size in the repository. the metadata ussualy like the following:
Let's move out and configure in Terminal :
1. Make a repository
Repository contains metadata file that have complete history and full revision about everything that happen to your git working directory. Metadata can reduce the size in the repository. the metadata ussualy like the following:
Let's move out and configure in Terminal :
1. Make a repository
server@server-comp:~$ cd ~/repository server@server-comp:~/repository$ mkdir contoh // create dir as contoh server@server-comp:~/repository$ cd contoh // enter contoh directory server@server-comp:~/repository/contoh$ ls -al // view content in directory total 8 drwxrwxr-x 2 server server 4096 Nov 20 11:24 . drwxrwxrwx 36 server server 4096 Nov 20 11:24 .. server@server-comp:~/repository/contoh$ git init // initialize as git repo Initialized empty Git repository in /home/server/repository/contoh/.git/ server@server-comp:~/repository/contoh$ ls -al total 12 drwxrwxr-x 3 server server 4096 Nov 20 11:25 . drwxrwxrwx 36 server server 4096 Nov 20 11:24 .. drwxrwxr-x 7 server server 4096 Nov 20 11:25 .git server@server-comp:~/repository/contoh$ vim contoh.txt // create first file, fill with anything and save server@server-comp:~/repository/contoh$ ls -al total 16 drwxrwxr-x 3 server server 4096 Nov 20 11:25 . drwxrwxrwx 36 server server 4096 Nov 20 11:24 .. -rw-rw-r-- 1 server server 20 Nov 20 11:25 contoh.txt drwxrwxr-x 7 server server 4096 Nov 20 11:25 .git server@server-comp:~/repository/contoh$ git add contoh.txt // add file(s) in directory server@server-comp:~/repository/contoh$ git commit -m "bikin contoh.txt" -a // make a commit [master (root-commit) 5852652] bikin contoh.txt 1 file changed, 1 insertion(+) create mode 100644 contoh.txtIf you do it correctly, there must be a .git file. Then we move .git out into other folder that represent contoh repository , for example, contoh.git.

