gitfiles

package module
v0.0.0-...-580b892 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 8 Imported by: 1

README

go-git-files

git pull/push를 강제합니다.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitFiles

type GitFiles struct {
	// contains filtered or unexported fields
}

GitFiles : git 객체입니다.

func (*GitFiles) Clear

func (gitFiles *GitFiles) Clear() error

Clear : 원격 저장소간에 문제가 발생했을 경우 폴더를 비우고 재실행합니다.

func (*GitFiles) Init

func (gitFiles *GitFiles) Init(user User, path, repURL, accessToken, remoteName string) error

Init : Git 레포를 가져오거나 기존 것을 불러옵니다.

func (*GitFiles) Pull

func (gitFiles *GitFiles) Pull() error

Pull : Git 레포 정보를 가져옵니다.

func (*GitFiles) Push

func (gitFiles *GitFiles) Push() error

Push : Add하고 Commit하고 Push 합니다.

type User

type User struct {
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL