There are 2 ways to do that
$ git checkout master
$ git pull
$ git reset --hard tag_ABC
#!/bin/bash | |
function sdkj() { | |
if [ "$1" == "" ]; then | |
echo "Expected Version prefix" | |
exit 1 | |
fi | |
PREFIX=$1 | |
CONTAINS=$2 | |
# list candidates in the order they were installed. Last matching installed will be selected. | |
CANDIDATES=$(ls -tr ~/.sdkman/candidates/java/) |
[user] | |
email = your_email | |
name = your_username | |
[alias] | |
# view your global git config Aliases from CLI | |
aliases = config --get-regexp '^alias\\.' | |
# git clone | |
cl = !git clone | |
# Git shallow clone for large repos | |
clq= !git clone --depth=1 |
//Define the gateway application | |
application { | |
config { | |
baseName gateway, | |
applicationType gateway, | |
packageName com.mamazinha.gateway, | |
authenticationType jwt, | |
prodDatabaseType postgresql, | |
clientFramework angularX, | |
serviceDiscoveryType eureka, |
name: Latest blog post workflow every hour | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
update-readme-with-blog: | |
name: Update this repo's README with latest blog posts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
name: Latest blog post profile workflow manual | |
on: | |
workflow_dispatch: | |
jobs: | |
update-readme-with-blog: | |
name: Update this repo's README with latest blog posts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: gautamkrishnar/blog-post-workflow@master |
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
/* | |
* Copyright (C) 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |