VesionControl Advanced
VesionControl Advanced
Aborting a rebase
git rebase --abort
advertisement
Configuration and aliases in Git Tutorial
Configuration and aliases in Git allow users to customize their Git environment and streamline their
workflows. By modifying the configuration settings, users can set user-specific options, such as user
name and email, line endings, and default behaviors for commands. Aliases enable users to create
shorthand commands for commonly used Git commands, enhancing efficiency in version control
operations.
Copy
Set user name and email
git config --global user.name 'Your Name'
git config --global user.email '[email protected]'
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
node_js:
- '14'
script:
- npm install
- npm test
branches:
only:
- main
stages {
stage('Checkout') {
steps {
git 'https://github.com/user/repository.git'
}
}
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh 'npm test'
}
}
}
}