Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
COURS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FILIPPONE Jerome
COURS
Commits
3bc991a5
Commit
3bc991a5
authored
1 year ago
by
FILIPPONE Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
80776470
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UE701/SEMESTRE_2_2023-24/EXERCICES/commandes_utiles.txt
+44
-0
44 additions, 0 deletions
UE701/SEMESTRE_2_2023-24/EXERCICES/commandes_utiles.txt
with
44 additions
and
0 deletions
UE701/SEMESTRE_2_2023-24/EXERCICES/commandes_utiles.txt
0 → 100644
+
44
−
0
View file @
3bc991a5
// création des alias
alias af='git add Firmware.txt ; git commit -m "ajout de Firmware"'
alias am='git add Maps.txt ; git commit -m "ajout de Maps"'
alias ar='git add Roadtrip.txt ; git commit -m "ajout de Roadtrip"'
alias gb='git branch'
alias gc='git checkout'
alias gl='git ls-files --cached'
alias go='git log --oneline'
// utilisation d'un alias
go DEV
// information sur les branches
git branch --all
git checkout -b DEV1B
git checkout -b DEV2B
// informations sur les commit
gitk --all&
git log --oneline
// informations sur le stage (ou index)
git ls-files --cached
git status
// fusionner dans DEV (après un checkout)
git merge DEV1B
git merge DEV1B --no-ff
git merge DEV2B
git merge DEV2B --no-ff
// rebasage dans DEV
git rebase DEV DEV1B
// rééinitialiser des états
git reset --hard HEAD~1
git reset --hard HEAD~2
git reset --hard HEAD~3
git reset --mixed HEAD~1
git reset --soft HEAD~1
// créer des fichiers
touch Firmware.txt
touch Maps.txt
touch Roadtrip.txt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment