Right now the cloning , push and pull of repositories into your github ,which is being done manually and involves repetitive typing of the same command.
- In order to save time and repetitiveness we have created a library which involves the following.
1. Automated cloning of repositories.
2. Automated push and pull into the repositories
3. Automated deletion of folders.
Hi! If your are visiting for the first time don't worry, you can learn about AutogitPy. You can read me, explore this documentation !!!!
We have created most important functions for easy access of git.
1. clone-used for cloning the repository
2. push_pull- push into and pull from repositories
3. del_folder_subfol-you can delete single file or an entire folder
4. display-just to displa your path,disk,and message.
Clone repository to your local computer:-
For this method,need to pass 3 parameters:-
1. disk - your local disk where you want to clone .
2. path - path of your folder.
3. gitlink - link of your git repository
Push into and Pull from Repository:-
You can push and pull by this command,need to pass there parameters:
1. disk - your local disk where you want to clone .
2. path - path of your folder.
3. msg - inline commit message
we can delete an entire folder or any folders you want.Parameters are:
1. disk - your local disk where you want to clone .
2. path - path of your folder.
3. folder/file - file/folder which you remove.
4. msg - inline commit message.
- It just prints your input
- from AutogitPy import AutoGitUtils
- AutoGitUtils.clone(disk="D",path="D:/folders",gitlink="link")
- AutoGitUtils.del_folder_subfol(disk,path,folder,msg)
- AutoGitUtils.push_pull(disk,path,msg)
- AutoGitUtils.display(disk,path,msg,folder,link)