Gitlab tags

shell git 5 years, 1 month ago
git tag -a versionnumber -m "versionmessage" git push origin versionnumber
1043
Posted By
Rename or change git branch name
git branch -m <old-name> <new-name>
git push origin :<old-name> <new-name>
git shell
kishore_kumar
How to check the logs around or at particular
#If you want to check the logs since 1 h
git log --since="1 hour ago"

git shell
harika
How to untrack/ unstage a file i.e already tr
git reset HEAD fileName.txt
git shell
harika
get logs in oneline / readable form in git
git log --oneline --graph --decorate
git shell
harika
Create alias in gitconfig from commandline
#here i am trying to make the one line l
git config --global alias.sLog "log --on

git shell
harika
Shell Script to Monitor Site with Json conten
a=`curl --insecure -I SITE-NAME | awk 'N
b=`wget -qO- --no-check-certificate SITE
if [[ "$a" -eq 200 ]]; then
shell Site-Monitor
sandeep sandeep
Shell Script to Generate the SSH key and disp
export PATH=$WORKSPACE/resources/chromed
export PYTHONPATH=$WORKSPACE

shell auto ssh key
sandeep sandeep
Run shell files in javascript
//JS Code
function runShellScript(){
    const process = require('child_proce
javascript shell node js
harika
copy a file and replace with another or origi
# way1

cp -f /path/to/file1.txt /another/path/t
shell
kishore_kumar
To delete all the none docker images in singl
docker rmi $(docker images | grep "^<non
shell docker
ashokrebel007 ashokrebel007
Remote copying (One centos machine to another
scp filename username@ipaddress:destinat

For example :
shell centos
ashokrebel007 ashokrebel007
Return a string from shell function
#!/bin/sh

hello()
string shell
harika
Stop or remove all docker containers command
# docker ps -a -q  -> will return all id
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
shell docker
kishore_kumar
vi editor save without exit from editor
:wq # will save and exit
:w # will save
:q! # exit without saving
vi linux shell
kishore_kumar
Linux Navigation
pwd  #print the name of current working 
cd  #change directory
ls #List directory contents
linux shell
Ramya Ramya
How to find the port which is running and sto
sudo lsof -i tcp:port //To find the port

kill pid //kills the process which is ru
shell kill port
Reshma
How to uninstall docker from mac
#!/bin/bash

# Uninstall Script
shell docker remove mac
Reshma
How to unzip file in terminal
unzip file_name
shell unzip
Reshma
How to execute a curl command with bash scrip
result=$(curl -n \
-X POST -H 'Content-Type: application/js
"give_url" \
shell curl with shell
Reshma
How to install Home Brew in mac
/bin/bash -c "$(curl -fsSL https://raw.g
brew shell mac
Reshma