push ke repository git yang kosong

Beriku cara push project ke repository git kosong di repositoryhosting.com

#1 Masuk ke folder modul

Contoh :
cd path-to-addons/max_account

#2 Inisiasi git

git init

#3 Relasikan ke remote repository
git remote add origin ssh://git@andhitia-rama.repositoryhosting.com/andhitia-rama/max-account.git

#4 Konfigurasi push
git config remote.origin.push refs/heads/master:refs/heads/master

#4 Add dile
git add -A .

#5 Commit
git commit -m "pesan commit"

#6 Push
git push origin master

Note :
Jangan lupa menyesuaikan text yang ditebalkan

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s