git is a distributed version control system. to store versions of files/dir in remotely we use scm servers such as gitbucket, bitbucket, gitlab, github.
here i am gonna teach about gitbucket
git bucket:
-----------
it is a private git server.
pre-requisites
----------------
java
sudo yum -y install java-1.8.0-openjdk
how to download git bucket?
wget (url of git bucket)
start gitbucket:
----------------
java -jar gitbucket.war
server side
-----------
how to login to git bucket interface?
default
user :root
password :root
how to change user password?
goto user profile and change password if you want
how to create user ?
under administration create users
client side
-----------
setup remote in the client side
-)git remote add (alias name) (url)
-)git remote add origin http://192.168.43.139:8080/git/ramu/techadda.git
how to see remote server name?
git remote
git remote -v (to see the url of remote)
how to push the data into remote server?
-)git push -u (alias name) (branch name)
-)git push -u origin master
master(local)-------------)master(server)
extra(local)---------------)extra(server)
how to pull the data from the server?
method 1
---------
fetch and merge
-)git fetch
-)git merge origin/master
method 2
--------
-)git pull (alias name) (branch name)
-)git pull origin master
clone
-----
-)git clone http://192.168.43.139:8080/git/ramu/techadda.git
clone the server data to the local machine
how to remove a remote server?
git remote rm (alias name)
Sur cette page du site, vous pouvez voir la vidéo en ligne Gitbucket Part 10 | Private Git-Server | Devops Tutorial for beginners durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Tech Farm 20 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,644 fois et il a aimé 11 téléspectateurs. Bon visionnage!