Example : Custom elements created using DOM Manipulation : -
Add
{{emailData|json}}
git status
git commit -a -m " commiting for change" -m "adding updated xxx files" -m "checking multi line commit message"
git push
git log -1
git pull
git add
git remote add https://github.com/xxxxx/my-pages.git
git push --set-upstream mypages master
git clone https://github.com/xxxxx/my-pages.git
git clone https://github.com/xxxxx/tutorials.git eugenp-tutorials
To modify the last commit
git add file-i-forgot-to-add.html
git commit --amend -m "Add the remaining file"
see our current branches
git branch
create a new branch
git branch <feature-branch-name>
For switching branches in Git, you won't use a "switch" command, as you might think. Instead, you'll need to use "checkout":
git checkout <feature-branch-name>
To merge a secondary branch into the main branch (which can be a master, development, or feature branch),
first switch back to the main branch. In our case, we should checkout the master branch
git checkout <main-branch-name>
git merge <feature-branch-name>
-----------------------
determine the URL that a local Git repository was originally cloned from?
If you want only the remote URL, or if your are not connected to a network that can reach the remote repo:
git config --get remote.origin.url
If you require full output and you are on a network that can reach the remote repo where the origin resides :
git remote show origin
Config global email and username
git config --global user.email xx.12345@gmail.com
git config --global user.name XXXX.YYYY
-------------------
To check the differences between local and github before the pull
git pull is really equivalent to running git fetch and then git merge.
The git fetch updates your so-called "remote-tracking branches" - typically these are ones
that look like origin/master, github/experiment, etc. that you see with git branch -r.
These are like a cache of the state of branches in the remote repository
that are updated when you do git fetch (or a successful git push).
So, suppose you've got a remote called origin that refers to your GitHub repository, you would do:
git fetch origin
... and then do:
git diff master origin/master
If you're happy with those differences, you can merge them in with
git merge origin/master , assuming master is your current branch.
-------------------
To get all commit history , just the first line
git log --all --oneline
To get all commit history , all detailed commit message, date, commiter
git log --all
Get a list of all git commits, including the 'lost' ones
Try:
git log --reflog
which lists all git commits by pretending that all objects mentioned by reflogs (git reflog) are listed on the command line as <commit>.
To open a file in notepad++
set PATH=%PATH%;D:\Notepad++
start notepad++
start notepad++ file-name
To open XAMPP in ubuntu
sudo /opt/lampp/lampp start
To stop XAMPP in ubuntu
sudo /opt/lampp/lampp stop
To start tomcat in ubuntu
sh /home/premendra/Downloads/apache-tomcat-8.5.40/bin/startup.sh
Check tomcat catalina.out logs
tail -f -n -500 /home/premendra/Downloads/apache-tomcat-8.5.40/logs/catalina.out
To change execute permission for a file
chmod 755 xampp-linux-x64-7.3.4-0-installer.run
To change execute permission for all files of a direcory
sudo chmod -R 0775 /home/premendra/Desktop/DUMP/bin