git install on server

Push Data To Github Repository “ on Redhat/Cent0s 7

Push Data To Github, Git is an Open source Version Control system keeps the track of files changes among People. GIT gives you very fast Performance as compared to SVN. It also can work offline. You can commit changes in offline, Even if your git server is down.

You can make your own GIT server and You can also use for keeping your files but it’s only for public repository.

Check Out : How To Change Gitlab Backup Path Location

Note : if you want to keep your files privates, So you have to pay for it. 

For more details visit  Git Docs

Let’s check git is installed or not

rpm -qa git

Let’s Begin the Installation

Install GIT Server on your local machine

Check Out : How To Check Logs In Git

yum install git -y

Now make a GIT repository 

mkdir repeat

This phase will initialise GIT

Check Out : How To Reset Gitlab Root Password

git init

You can check by running the below command

ls –a

See GIT configuration files here

cd .git/

Create a file

Check Out : Redirection HTTP to HTTPS in Gitlab

touch abc

echo “this is my first git setup” > abc

Check status , ?? Means you have just created a files not added in GIT

git status –s

Add file to GIT  repo

git add abc

“A” Means files has been added and it’s in staging area

Check Out : LDAP Authentication With Gitlab Server

git status –s

Now run a commit command

git commit -m “first commit”

You can Check who committed the changes

git log

Create a username and email for a user to recognize who worked on the files

git config –global “” && git config –global “TOM”

echo “i repeat the step” > abc

For testing, you can commit again

git commit -m “second commit”

git log

Check Out : How To Merge Branch In Git On Gitlab

Now we will push the data to the centralized github, Login to your account on

Here you will have to add remote GIT repository/Server where all the data will be saved

git remote add origin

Push the data to centralised GIT Server

git push origin master

Your data is saved on github repository

YouTube link :  Data To GitHub

You’re done

Leave a Reply

Notify of