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.
Push Data To Github Repository “ on Redhat/Cent0s 7:
You can make your own GIT server and You can also use github.com for keeping your files but it’s only for the 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
Install GIT Server on your local machine
Check Out: How To Check Logs In Git
yum install git -y
Now make a GIT repository
This phase will initialize GIT
Check Out: How To Reset Gitlab Root Password
You can check by running the below command
See GIT configuration files here
Create a file
Check Out: Redirection HTTP to HTTPS in Gitlab
echo "this is my first git setup" > abc
Check status, ?? Means you have just created files not added in GIT
git status –s
Add file to GIT repo
git add abc
“A” Means files have been added and it’s in the 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
Create a username and email for a user to recognize who worked on the files.
git config --global user.email “[email protected]” && git config --global user.name "TOM" echo "i repeat the step" > abc
For testing, you can commit again
git commit -m "second commit"
Check Out: How To Merge Branch In Git On Gitlab
Now we will push the data to the centralized GitHub, log in to your account on https://github.com
Here you will have to add remote GIT repository/Server where all the data will be saved
git remote add origin [email protected]:Aryango/publicrepo.git
Push the data to the centralized GIT Server.
git push origin master
Your data is saved on the GitHub repository.
YouTube link: Data To GitHub