git commit current changes to existing branch
git stash
git checkout other-branch
git stash pop
git commit current changes to existing branch
git stash
git checkout other-branch
git stash pop
git how to commit changes to a new branch
git checkout -b your-new-branch
git add <files>
git commit -m <message>
how to commit a branch in git
git commit -m "added my github name"
how to commit changes in git command
git commit -a
add a new column to existing table in a migration
// for Laravel 5+
php artisan make:migration add_email_to_users_table --table=users
public function up()
{
Schema::table('users', function($table) {
$table->integer('email');
});
}
public function down()
{
Schema::table('users', function($table) {
$table->dropColumn('email');
});
}
php artisan migrate
alter table add column
ALTER TABLE table_name
ADD column_name datatype;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us