GIT Dia5
GIT Dia5
REMOTE REPOSITORIES
What is a remote
Me
Remotes
Nice to meet you!
Create a repository
$ git init
§ Clone
Clone a repo:
Concepts
$ git remote
Push
Force Push
$ git diff
Abort a merge
If you do, you will have to use their full ref names
to distinguish them.
§ Lightweight
Like a branch that doesn’t change. A pointer to a
specific commit
§ Annotated
Are stored as full objects in the Git database. They
are checksummed; contain the tagger name, email
and date. Can be signed and verified.
WORKFLOWS
Working with remotes
Pull
request
Centralized workflow
Git flow
Feature
1
Feature
2
Accept?
Tag 0.1
Accept?
To
Prod
Git flow
Inserts
bug
into
dev
Tag
0.2
To
Prod
ADVANCED CONFIGURATION
Alias
Configuration:
- Edit .git/config
[alias]
ci = commit
Bare
Working
Directory
Best Practice:
- Add remote
Israel
Alcázar
[email protected]
@ialcazar