Push config to github is a CLI tool written in C language. This project designed to identify and synchronize differences between two files. This tool is particularly useful for users who need to ensure data consistency between versions of files, whether they are documents, code files.
- Project allow you to set a target file of your configuration and get depository on your local machine to synchronise both file in between them
# Local git repo path in which you wants to sync your files.
# Example: Syncing files to the 'my_config' repository on GitHub
export COMP_GIT_SOURCE_DIR="<|path /to/you/local/repository/|>"
{
.fileName = ".bashrc",
// The folder path where the original file is located.
// Example: The '.bashrc' file is located in the '/home/pritam/' directory. .systemDirectory = "/home/pritam/",
// The folder path inside the local git repo where you want to sync the file.
// Example: The '.bashrc' file will be synced to the 'linux_ubuntu/' folder.
.gitDir = "dirwin_os/",
// The new name for the file inside the git repo.
// Example: The '.bashrc' file will be renamed to 'bashrc.sh' in the git repo.
.newName = "bashrc.sh",
},
{
.fileName = ".bashrc",
.systemDirectory = "home/pritam/",
.gitDir = "dirwin_os/",
.newName = "bashrc.sh",
},
{
.fileName = ".bashrc",
.systemDirectory = "home/pritam/",
.gitDir = "dirwin_os/",
.newName = "bashrc.sh",
}