Skip to content

c0nfusecode/git-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

git-manager

Installing

apt install git

U need intall Node.JS

For debian: curl https://a.rawr.party/install/debian/node.js?v=18 | sh

Thanks for the easy installer @gerrustalker

Create your PAT key

Examples

Clone

const testing = new gitsync("username_on_github", "NAME_GITHUB_REPO", "/home/path/repos", "Your PAT Key")
// NAME_GITHUB_REPO this parameter MUST NOT lead to a repository, it leads to the directory where all repositories are located.
testing.clone()

Commit changes

const testing = new gitsync("username_on_github", "NAME_GITHUB_REPO", "/home/path/repos", "Your PAT Key")
// NAME_GITHUB_REPO this parameter MUST NOT lead to a repository, it leads to the directory where all repositories are located.
// To work correctly, a github repository must match the name of NAME_GITHUB_REPO, which in turn matches the name of the folder on your computer.
testing.add("--all").then(() => {
    console.log("Adding all files")

    testing.commit('First commit with GitSync').then(() => {
        testing.push()  // or u can use testing.push("local", "branch")
    })
})

Releases

No releases published

Packages

No packages published