Create Git client #2
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Depends on
#11 gitClient
www/Eventer
Reference: www/Eventer#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a new file
gitClient
and create some functions which allow the following functionality:cloneRepo (clones a repo, to a temperary directotry)
pushRepo (takes a path to a git repo and pushes)
commmit (takes a path to a git repo and commits all changes the repo)
These functions will do these things by calling commands (such as
git push
,git clone
etc.)You'll also have to figure out the best way to create a tmp directy in NodeJs.