Skip to content

pritam12426/puchcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push System Configuration To Github

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.

Features

  • 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

Screen Of Log Status Of `pushcon`

# 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/|>"

Configuration Example.

{
	.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",
},

Multi Configuration Example

{
	.fileName = ".bashrc",
	.systemDirectory = "home/pritam/",
	.gitDir = "dirwin_os/",
	.newName = "bashrc.sh",
},

{
	.fileName = ".bashrc",
	.systemDirectory = "home/pritam/",
	.gitDir = "dirwin_os/",
	.newName = "bashrc.sh",
}

License

MIT License