Translate
Wednesday, February 10, 2016
Tuesday, February 9, 2016
The most usefull GIT Commands
These are the most common GIT commands
- Create an empty repository
git init
- Staging your changes
git add
- If you are your root directory , I mean myapplication/ you can use the paramter -A to stage all changes in one execution.
git add -A
- Putting you changes in your local repo
git commit
git commit
- If you want to add a message in your commit you can use the parameter -m
git commit -m "login fixed"
- Switching between branches
git checkout develop
- Creating a new branch
git checkout -b MyNewBranch
- Adding new remote
git remote add origin https://github.com/plataformatec/devise.git
- Saving your changes to the remote repo
git push origin develop
- Pull down new changes
git pull origin develop
Wednesday, October 28, 2015
How to remove remote origin URL from git repository
To remove a remote URL from GIT, you must use the command git remote remove.
Here is an example:
git remote remove origin
or you can use:
git remote rm origin
Thursday, October 22, 2015
How to Export Active Directory user information to a CSV File
Probably you may be tempted to try to export users using the dsquery command, but is not the best way.
When I was trying to do this, I found a specific command to perform this task.
CSVDE is one of the best option to export AD users via command line. It is necessary to note that CSVDE has to be executed on your domain controller,otherwise it will not work.
This is the syntax:
csvde -d "OU=Finance,OU=Users,DC=Mydomain,DC=Com" -l dn,userAccountControl,sAMAccountName,userPrincipalName,whenCreate -r "(&(objectCategory=Person)(objectClass=user))" -f usersExported.csv -u
Parameters:
-d: Distinguished name
-l : Ldap attributes
-r : Ldap attributes list
-f : File name
-u : Unicode format
Wednesday, October 21, 2015
How to disable textbox autocomplete
As you may notice, your browser is capable to suggest some options that you have written already in the past. If you are building a web form, you will probably need to deactivate the autocomplete behaviour. To do this, add the following html attribute as is shown below.
<input
type="text"
name='user_id'
autocomplete='off'
/>
Thursday, September 3, 2015
How to rename a tag in GIT
In this post, I will teach you how to rename a tag in git.
Actually, it is pretty easy.
I am going to rename the tag called myOldTag to myNewTag.
Step 1: we create an alias called "myNewTag"
git tag myNewTag myOldTag
Step 2: we delete the myOldTag tag locally
git tag -d myOldTag
Step 3: we tell to git repository that myoldTag has been deleted
git push origin :refs/tags/myOldTag
Step 4: we save the changes on GIT
git push --tags
Subscribe to:
Posts (Atom)